effect-io-ai

Package: effect
Module: Sink

Sink.some

A sink that returns whether an element satisfies the specified predicate.

When to use

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

See

Signature

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

Source

Since v2.0.0