Name
flatten — Flattens List
Synopsis
list
flatten
( |
list<list>
LIST
) ; |
Description
Gets a list of lists LIST
and creates a single list that is the concatenation of those lists in LIST
.
Usage
flatten ([ [1, 2], [3, 4] ]) -> [1, 2, 3, 4]
flatten ([ [1, 2], [6, 7], [3, 4] ]) -> [1, 2, 6, 7, 3, 4]