zipMapWith<V, E> method

Iterable<E> zipMapWith<V, E>(
  1. Iterable<V> other, {
  2. required E mapper(
    1. T a,
    2. V b
    ),
})

Implementation

Iterable<E> zipMapWith<V, E>(
  Iterable<V> other, {
  required E Function(T a, V b) mapper,
}) sync* {
  final it1 = iterator;
  final it2 = other.iterator;

  while (it1.moveNext() && it2.moveNext()) {
    yield mapper(it1.current, it2.current);
  }
}