Qurak

TakeList

Available

Splits a list into chunks of given lengths.

TakeList[list, {n1, n2, …}]
TakeList[list, {seq1, seq2, …}]
TakeList[list, seqs1, seqs2, …]
TakeList[{a, b, c, d, e}, {2, 3}] → {{a, b}, {c, d, e}}TakeList[{a, b, c, d, e, f, g, h}, {-2, -3, -1}] → {{g, h}, {d, e, f}, {c}}TakeList[h[a, b, c, d, e, f, g], {2, 3, 1}] → {h[a, b], h[c, d, e], h[f]}

Topics

Related

All 6300 functions · Use this from an MCP client