effect-io-ai

Package: effect
Module: Sink

Sink.every

A sink that returns whether all elements satisfy the specified predicate.

When to use

Use to reduce a stream to a boolean that is true only when every input satisfies a pure predicate.

See

Signature

declare const every: <In>(predicate: Predicate<In>) => Sink<boolean, In, In>

Source

Since v2.0.0