import { I } from "https://deno.land/x/ahh@v0.10.3/mod.ts";
Consumes an Iterator
and calls f
on each item.
Examples
Example 1
Example 1
import { I } from "./mod.ts";
const iter = I.iter([1, 2, 3]);
I.forEach(iter, (i) => console.log(i));
console.log(iter.next()); // undefined