Function
isSubset_
(E: Equivalence.Equivalence<A>)
Source from the content-addressed store, hash-verified
| 231 | * `true` if and only if every element in the first set is an element of the second set |
| 232 | */ |
| 233 | export function isSubset_<A>(E: Equivalence.Equivalence<A>): (x: Set<A>, y: Set<A>) => boolean { |
| 234 | const elemE = elem_(E) |
| 235 | return (x, y) => every((a: A) => elemE(y, a))(x) |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Filter set values using predicate |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…