effect-io-ai

Package: effect
Module: List

List.reduce

Folds over the elements of the list using the specified function, using the specified initial value.

Signature

declare const reduce: { <Z, A>(zero: Z, f: (b: Z, a: A) => Z): (self: List<A>) => Z; <A, Z>(self: List<A>, zero: Z, f: (b: Z, a: A) => Z): Z; }

Source

Since v2.0.0