ListTools[LengthSplit] - split a list into an expression sequence of sublists of a given length
|
Calling Sequence
|
|
LengthSplit( L, n )
LengthSplit( L, n, pad = expr )
|
|
Parameters
|
|
L
|
-
|
list
|
n
|
-
|
posint; the length of the sublists
|
expr
|
-
|
(optional) anything; an expression to use for padding the last list to length n
|
|
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?