effect-io-ai

Package: effect
Module: Sink

Sink.reduce

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

Signature

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

Source

Since v4.0.0