kmongo / kotlin.collections / com.mongodb.client.MongoIterable / zip

zip

infix fun <T, R> MongoIterable<T>.zip(other: Array<out R>): List<Pair<T, R>> (source)

Returns a list of pairs built from the elements of this collection and the other array with the same index. The returned list has length of the shortest collection.

//Unresolved: samples.collections.Iterables.Operations.zipIterable
inline fun <T, R, V> MongoIterable<T>.zip(other: Array<out R>, crossinline transform: (a: T, b: R) -> V): List<V> (source)

Returns a list of values built from the elements of this collection and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.

//Unresolved: samples.collections.Iterables.Operations.zipIterableWithTransform
infix fun <T, R> MongoIterable<T>.zip(other: Iterable<R>): List<Pair<T, R>> (source)

Returns a list of pairs built from the elements of this collection and other collection with the same index. The returned list has length of the shortest collection.

//Unresolved: samples.collections.Iterables.Operations.zipIterable
inline fun <T, R, V> MongoIterable<T>.zip(other: Iterable<R>, crossinline transform: (a: T, b: R) -> V): List<V> (source)

Returns a list of values built from the elements of this collection and the other collection with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.

//Unresolved: samples.collections.Iterables.Operations.zipIterableWithTransform