Skip to main content
Module

x/better_iterators/mod.ts>LazyAsync#fold

Chainable iterators (sync and async) for TypeScript, with support for opt-in, bounded parallelism
Go to Latest
method LazyAsync.prototype.fold
import { LazyAsync } from "https://deno.land/x/better_iterators@v1.2.1/mod.ts";

Parameters

initial: I
foldFn: (i: I, t: T) => I

Returns

Promise<I>