IterableChunkWhile<E> extension

on

Methods

chunkWhile(bool predicate(E, E)) Iterable<List<E>>

Available on Iterable<E>, provided by the IterableChunkWhile extension

Splits this collection into a lazy Iterable of chunks, where chunks are created as long as predicate is true for a pair of entries.