effect-io-ai

Package: effect
Module: Sink

Sink.reduceWhileArray

A sink that reduces non-empty input arrays from the provided initial state with f while the specified predicate returns true.

Signature

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

Source

Since v4.0.0