Skip to main content
Chunk List divides a list from left to right. The final chunk can contain fewer items than the requested size.

Inputs

Output

For example, chunking [1, 2, 3, 4, 5] with a size of 2 returns [[1, 2], [3, 4], [5]].
Size must be a whole number greater than zero.