Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/stream/custom/stream-custom.ts>StreamBase#fold

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
method StreamBase.prototype.fold
import { StreamBase } from "https://deno.land/x/rimbu@1.0.2/stream/custom/stream-custom.ts";

Parameters

init: OptLazy<R>
next: (
current: R,
value: T,
index: number,
halt: () => void,
) => R