zip method

Iterable<Tuple2<T, T>> zip(
  1. Iterable<T> otherIterable
)

Aggregate two sources trimming by the shortest source

Implementation

Iterable<Tuple2<T, T>> zip(Iterable<T> otherIterable) {
  final other = otherIterable.toList();
  final minLength = min(length, other.length);
  return Iterable.generate(minLength, (index) => Tuple2(_l[index], other[index])).toIList(config);
}