import { I } from "https://deno.land/x/ahh@v0.10.1/mod.ts";
Creates an Iterator
that will iterate over two other
Iterator
s simultaneously.
If either Iterator
returns None
, so will this
Iterator
.
Examples
import { I } from "./mod.ts"
const iter = I.zip(I.iter([1, 2]), I.iter(["3", "4", "5"]));
console.log(iter.next()); // [1, "3"]
console.log(iter.next()); // [2, "4"]
console.log(iter.next()); // undefined