zip<A, B> function

Iterable<Pair<A, B>> zip<A, B>(
  1. Iterable<A> iterable1,
  2. Iterable<B> iterable2
)

top-level function matching the behaviour of the Python zip function

see https://docs.python.org/3/library/functions.html#zip

Implementation

Iterable<Pair<A, B>> zip<A, B>(
  Iterable<A> iterable1,
  Iterable<B> iterable2,
) =>
    _zipCore(iterable1, iterable2);