diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-04-25 13:46:40 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-05-17 21:54:23 +0200 |
| commit | d41cc2a1cdf9fc7a9d5781779363b9bb3eb82c00 (patch) | |
| tree | e2c7555cbf2be5981b805c459861e5834d31b23f /README.md | |
| parent | 0d2b55b41a8f38264fd510efd4c1306239c94d17 (diff) | |
Concat builtin function
Changelog: Added `concat` function for lists
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |