effect-io-ai

Package: effect
Module: Sink

Sink.reduceArray

A sink that reduces its inputs using the provided function f starting from the specified initial state.

Signature

declare const reduceArray: <S, In>(initial: LazyArg<S>, f: (s: S, input: NonEmptyReadonlyArray<In>) => S) => Sink<S, In>

Source

Since v4.0.0