zip

open fun <B, S> zip(other: CollectorI<B, Value, S>): Collector<Value, Pair<Result, S>>

Combines two Collectors by performing the phases of each of them in parallel.

Parameters

other

Collector to combine with this


open fun <B, S, V> zip(other: CollectorI<B, Value, S>, combine: suspend (Result, S) -> V): Collector<Value, V>

Combines two Collectors by performing the phases of each of them in parallel, and then combining the end result in a final step.

Parameters

other

Collector to combine with this

combine

Function that combines the end results