From 185aa4e0cf41bbf9d220fe7ccb7f9334faaab5da Mon Sep 17 00:00:00 2001 From: sergeych Date: Fri, 13 Jun 2025 18:40:14 +0400 Subject: [PATCH] better docs/2 --- docs/advanced_topics.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/advanced_topics.md b/docs/advanced_topics.md index 69c331d..fc685e7 100644 --- a/docs/advanced_topics.md +++ b/docs/advanced_topics.md @@ -94,6 +94,7 @@ With ellipsis and splats you can create partial functions, manipulate arguments list in almost arbitrary ways. For example: // Swap first and last arguments for call + fun swap_args(first, others..., last, f) { f(last, ...others, first) } @@ -104,8 +105,8 @@ arguments list in almost arbitrary ways. For example: } assertEquals( - "321", - swap_args( 1, 2, 3, glue) + "4231", + swap_args( 1, 2, 3, 4, glue) ) >>> void