From d41cc2a1cdf9fc7a9d5781779363b9bb3eb82c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 25 Apr 2026 13:46:40 +0200 Subject: Concat builtin function Changelog: Added `concat` function for lists --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a7414b3..8d40a6f 100644 --- a/README.md +++ b/README.md @@ -234,8 +234,10 @@ let numbers = [1, 2, 4] ``` List elements can be of any type, but all elements of a particular list must have the same type. - -Used in the `for` command. +They can be concatenated using the `concat` function, which takes a list of lists as argument: +``` +let list = concat [[1], [2, 3], [4]] # = [1, 2, 3, 4,] +``` ### Built-in commands -- cgit v1.2.3