functions/arrays/chunk library

Functions

chunk(List list, [int size = 1]) List
Creates an list of elements split into groups the length of size. If list can't be split evenly, the final chunk will be the remaining elements. Example