effect-io-ai

Package: effect
Module: Predicate

Predicate.all

Takes an iterable of predicates and returns a new predicate that tests an array of values. The new predicate returns true if each predicate at a given index is satisfied by the value at the same index in the array. The check stops at the length of the shorter of the two iterables (predicates or values).

See

Signature

declare const all: <A>(collection: Iterable<Predicate<A>>) => Predicate<ReadonlyArray<A>>

Source

Since v2.0.0