ListTools[FlattenOnce] - flatten a (possible nested) list once
|
Calling Sequence
|
|
FlattenOnce(L)
|
|
Description
|
|
•
|
The FlattenOnce(L) function converts any element in list L which are of type list to expression sequences.
|
•
|
This procedure has option inline; therefore, it can be used within a procedure without the overhead of a procedure call.
|
|
Note: The inlined procedure ListTools[FlattenOnce](L) is more efficient than a call to ListTools[Flatten](L, 1).
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?