zipAndTransform<T, R> method

Iterable<R> zipAndTransform<T, R>(
  1. Iterable<T> other,
  2. R transform(
    1. Pair<E, T> pair
    )
)

Returns a Iterable 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 Iterable has length of the shortest collection.

Implementation

Iterable<R> zipAndTransform<T, R>(
  Iterable<T> other,
  R Function(Pair<E, T> pair) transform,
) =>
    zip(other).map(transform);