MCPcopy Index your code
hub / github.com/Effect-TS/effect / productMany

Function productMany

packages/effect/src/Predicate.ts:978–984  ·  view source on GitHub ↗
(
  self: Predicate<A>,
  collection: Iterable<Predicate<A>>
)

Source from the content-addressed store, hash-verified

976 * @since 2.0.0
977 */
978export const productMany = <A>(
979 self: Predicate<A>,
980 collection: Iterable<Predicate<A>>
981): Predicate<readonly [A, ...Array<A>]> /* readonly because contravariant */ => {
982 const rest = all(collection)
983 return ([head, ...tail]) => self(head) === false ? false : rest(tail)
984}
985
986/**
987 * Combines an array of predicates into a single predicate that tests an array of values.

Callers

nothing calls this directly

Calls 1

allFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…