IterableChunkWhile<E> extension

on

Methods

chunkWhile(bool predicate(E, E)) Iterable<List<E>>
Splits this collection into a lazy Iterable of chunks, where chunks are created as long as predicate is true for a pair of entries.