From 1323f93923d1d927789a5e843dc484bef57c4b75 Mon Sep 17 00:00:00 2001 From: sergeych Date: Mon, 2 Jun 2025 19:05:35 +0400 Subject: [PATCH] docs polishing --- docs/tutorial.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial.md b/docs/tutorial.md index 983bf1a..0340cc8 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -318,6 +318,8 @@ one could be with ellipsis that means "the rest pf arguments as List": ### Using lambda as the parameter + // note that fun returns its last calculated value, + // in our case, result after in-place addition: fun mapValues(iterable, transform) { var result = [] for( x in iterable ) result += transform(x)