import { I } from "https://deno.land/x/ahh@v0.10.3/mod.ts";
Consumes an Iterator
until f
returns true
, and returns
true
if it does.
Examples
Example 1
Example 1
import { I } from "./mod.ts";
const iter = I.iter([2, 4, 6]);
console.log(I.any(iter, (i) => i > 4)); // true
console.log(I.any(iter, (i) => i > 6)); // false