diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -236,7 +236,11 @@ let numbers = [1, 2, 4] List elements can be of any type, but all elements of a particular list must have the same type. 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,] +let list = concat [[1], [2, 3], [4]] # = [1, 2, 3, 4] +``` +Or with the `++` operator: +``` +let list = [1] ++ [2, 3] ++ [4] # = [1, 2, 3, 4] ``` ### Built-in commands |