gives the list of results obtained by successively taking ni elements from list.
successively uses the sequence specifications seqi.
gives a nested list in which elements specified by the lists seqsi are taken at level i in list.
Examplesopen allclose all
Basic Examples (5)
Properties & Relations (5)
Subdivide a list in sublists of different lengths using TakeList:
The original list can be reconstructed using Flatten:
Subdivide an array in blocks of different sizes using TakeList:
The original matrix can be reconstructed with ArrayFlatten:
The original list can be reconstructed with TakeList by giving the lengths of the subexpressions: