import { I } from "https://deno.land/x/ahh@v0.10.3/src/iter/mod.ts";
Examples
Example 1
Example 1
import { I } from "./mod.ts";
const iter = I.flatten(I.iter([I.once(1), I.empty(), I.iter([2, 3])]));
console.log(iter.next()); // 1
console.log(iter.next()); // 2
console.log(iter.next()); // 3
console.log(iter.next()); // undefined