import { Iterator } from "https://deno.land/x/ahh@v0.13.0/mod.ts";
Consumes n
items from this
and returns the next item.
Examples
Example 1
Example 1
import { assert } from "../test_deps.ts";
import I from "./iterator.ts";
const iter = I.fromIter([1, 2, 3]);
assert(iter.nth(1) === 2);