ChunkedIterableExtension<E> extension

on

Methods

chunked(int size) Iterable<List<E>>
Divides this Iterable into sub-lists of a given size. The final list might be smaller or equal to the desired size.
chunkedWithPadding(int size, E padding) Iterable<Iterable<E>>
Divides this Iterable into sub-lists of a given size. The final list is expanded with the provided padding, or null.