effect-io-ai

Package: effect
Module: Sink

Sink.reduceWhileArrayEffect

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

Signature

declare const reduceWhileArrayEffect: <S, In, E, R>(initial: LazyArg<S>, predicate: Predicate<S>, f: (s: S, input: NonEmptyReadonlyArray<In>) => Effect.Effect<S, E, R>) => Sink<S, In, never, E, R>

Source

Since v4.0.0