From ef266b73a2b999559379e6fd68aa10f094fae1a5 Mon Sep 17 00:00:00 2001 From: sergeych Date: Fri, 13 Jun 2025 18:03:51 +0400 Subject: [PATCH] better docs/2 --- docs/advanced_topics.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/advanced_topics.md b/docs/advanced_topics.md index db1b873..69c331d 100644 --- a/docs/advanced_topics.md +++ b/docs/advanced_topics.md @@ -93,8 +93,10 @@ Lambda functions remember their scopes, so it will work the same as previous: With ellipsis and splats you can create partial functions, manipulate arguments list in almost arbitrary ways. For example: - // Swap first and last arguments in the call - fun swap_args(first, others..., last, f) { f(last, ...others, first) } + // Swap first and last arguments for call + fun swap_args(first, others..., last, f) { + f(last, ...others, first) + } fun glue(args...) { var result = ""