import { I } from "https://deno.land/x/ahh@v0.10.0/src/iter/mod.ts";
Creates an Iterator
that skips items while f
return true
.
Examples
import { I } from "./mod.ts";
const iter = I.skipWhile(I.iter([1, 3, 2, 3]), (i) => i % 2 !== 0);
console.log(iter.next()); // 2
console.log(iter.next()); // 3
console.log(iter.next()); // undefined