zip

fun <A, R, S, V> zip(x: Collector<A, R>, y: Collector<A, S>, combine: suspend (R, S) -> V): Collector<A, V>

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

Parameters

x

First Collector

y

Second Collector

combine

Function that combines the end results


fun <A, R, S, V> zip(x: NonSuspendCollector<A, R>, y: NonSuspendCollector<A, S>, combine: (R, S) -> V): NonSuspendCollector<A, V>

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

Parameters

combine

Function that combines the end results


fun <A, R, S, T, V> zip(x: Collector<A, R>, y: Collector<A, S>, z: Collector<A, T>, combine: suspend (R, S, T) -> V): Collector<A, V>

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

Parameters

x

First Collector

y

Second Collector

z

Third Collector

combine

Function that combines the end results


fun <A, R, S, T, V> zip(x: NonSuspendCollector<A, R>, y: NonSuspendCollector<A, S>, z: NonSuspendCollector<A, T>, combine: (R, S, T) -> V): NonSuspendCollector<A, V>

Combines three NonSuspendCollectors by performing the phases of each of them in parallel.

Parameters

combine

Function that combines the end results


fun <A, C1, C2, C3, C4, R> zip(c1: Collector<A, C1>, c2: Collector<A, C2>, c3: Collector<A, C3>, c4: Collector<A, C4>, combine: suspend (C1, C2, C3, C4) -> R): Collector<A, R>

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

Parameters

c1

First Collector

c2

Second Collector

c3

Third Collector

c4

Fourth Collector

combine

Function that combines the end results


Combines four NonSuspendCollectors by performing the phases of each of them in parallel.

Parameters

combine

Function that combines the end results


fun <A, C1, C2, C3, C4, C5, R> zip(c1: Collector<A, C1>, c2: Collector<A, C2>, c3: Collector<A, C3>, c4: Collector<A, C4>, c5: Collector<A, C5>, combine: suspend (C1, C2, C3, C4, C5) -> R): Collector<A, R>

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

Parameters

c1

First Collector

c2

Second Collector

c3

Third Collector

c4

Fourth Collector

c5

Fifth Collector

combine

Function that combines the end results


Combines four NonSuspendCollectors by performing the phases of each of them in parallel.

Parameters

combine

Function that combines the end results