Function
productMany
(
self: Predicate<A>,
collection: Iterable<Predicate<A>>
)
Source from the content-addressed store, hash-verified
| 976 | * @since 2.0.0 |
| 977 | */ |
| 978 | export 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
Tested by
no test coverage detected