telepath / com.github.giedomak.telepath.memorymanager.spliterator / PartitioningSpliterator / partition

partition

fun <E> partition(input: Stream<E>, partitionSize: Int): Stream<List<E>> (source)
fun <E> partition(input: Stream<E>, partitionSize: Int, batchSize: Int): Stream<List<E>> (source)