(rontolisp) docs
← Seqs

partition-by

(partition-by f coll) / (partition-by f)

Splits coll's seq into runs where (f x) stays = to the run's first value. Each run is strict; a lazy input answers a lazy seq of runs, a strict one a strict list. (partition-by f) is its transducer, stepping vectors. As a value one or two arguments.