import { I } from "https://deno.land/x/ahh@v0.10.3/mod.ts";
Creates an Iterator
which yields the current iteration as well
as the next value.
Examples
Example 1
Example 1
import { I } from "./mod.ts";
const iter = I.enumerate(I.iter(["hello", "there", "world"]));
console.log(iter.next()); // [0, "hello"]
console.log(iter.next()); // [1, "there"]
console.log(iter.next()); // [2, "world"]
console.log(iter.next()); // undefined