Module

x/rambda/immutable.d.ts>reduce

Faster and smaller alternative to Ramda
Latest
function reduce
import { reduce } from "https://dotland.deno.dev/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