zip<R> method

KtList<KtPair<T, R>> zip<R>(
  1. KtIterable<R> other
)

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.

Implementation

KtList<KtPair<T, R>> zip<R>(KtIterable<R> other) =>
    zipTransform(other, (T a, R b) => KtPair(a, b));