ListTools[Flatten] - flatten a list containing lists of elements
|
Calling Sequence
|
|
Flatten(L, N)
|
|
Parameters
|
|
L
|
-
|
list
|
N
|
-
|
non-negative integer
|
|
|
|
|
Description
|
|
•
|
The Flatten(L) function recursively converts any elements in a list which are of type list to expression sequences.
|
•
|
The Flatten(L, N) function flattens a nested list of lists times.
|
|
Note: The inlined procedure is more efficient than a call to Flatten(L, 1).
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?