array/chunk library

Functions

chunk<T>(List<T> array, [int size = 1]) List<List<T>>
Creates a new list of chunks of the given array, each chunk containing size number of elements. If the array cannot be evenly divided into chunks of size size, the final chunk will contain the remaining elements.