zipForEachWith<V> method

void zipForEachWith<V>(
  1. Iterable<V> other,
  2. void fn(
    1. T,
    2. V
    )
)

Implementation

void zipForEachWith<V>(Iterable<V> other, void Function(T, V) fn) {
  final it1 = iterator;
  final it2 = other.iterator;

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