modules/array/chunk library

Functions

chunk<T>(List<T> list, {int size = 1}) List<List<T>>
Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements.