import { Iterator } from "https://deno.land/x/ahh@v0.13.0/mod.ts";
Consumes this
until fn
returns true
for an item.
Examples
Example 1
Example 1
import { assert } from "../test_deps.ts";
import I from "./iterator.ts";
const odd = (i: number): boolean => i % 2 !== 0;
const iter = I.fromIter([2, 3, 4]);
assert(iter.any(odd));