Skip to main content
Module

x/itertools/mod.ts>izip2

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Latest
function izip2
import { izip2 } from "https://deno.land/x/itertools@v1.1.2/mod.ts";

Returns an iterator that aggregates elements from each of the iterables. Used for lock-step iteration over several iterables at a time. When iterating over two iterables, use izip2. When iterating over three iterables, use izip3, etc. izip is an alias for izip2.

Parameters

xs: Iterable<T1>
ys: Iterable<T2>

Returns

Iterable<[T1, T2]>