BatchExtension<T> extension

on

Methods

batch(int size, {bool includeTail = false}) Iterable<Iterable<T>>
Groups elements in the iterator into batches of size length, optionally truncating elements that don't fit into a full-size batch.