zipAll<T1> method

Iterable<Tuple<T?, T1?>> zipAll<T1>(
  1. Iterable<T1> other
)

Implementation

Iterable<Tuple<T?, T1?>> zipAll<T1>(Iterable<T1> other) sync* {
  final ia = iterator, ib = other.iterator;
  bool hasA, hasB;
  while (_or(hasA = ia.moveNext(), hasB = ib.moveNext())) {
    yield Tuple(hasA ? ia.current : null, hasB ? ib.current : null);
  }
}