import { I } from "https://deno.land/x/ahh@v0.10.0/src/iter/mod.ts";
Creates an Iterator
that calls f
on each item.
Examples
import { I } from "./mod.ts";
const iter = I.map(I.iter([1, 2, 3]), (i) => i * i);
console.log(iter.next()); // 1
console.log(iter.next()); // 4
console.log(iter.next()); // 9
console.log(iter.next()); // undefined