Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>reduce

Faster and smaller alternative to Ramda
Latest
function reduce
import { reduce } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult
initialValue: TResult
list: readonly T[]

Parameters

reducer: (prev: TResult, current: T) => TResult
initialValue: TResult
list: readonly T[]

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult

Returns

(initialValue: TResult, list: readonly T[]) => TResult

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult
initialValue: TResult

Returns

(list: readonly T[]) => TResult