MCPcopy Create free account
hub / github.com/Effect-TS/effect / isSubset

Function isSubset

packages/effect/src/internal/hashSet.ts:141–148  ·  view source on GitHub ↗
(self: HashSet<V0>, that: HashSet<V1>)

Source from the content-addressed store, hash-verified

139
140/** @internal */
141export const isSubset = <V0, V1>(self: HashSet<V0>, that: HashSet<V1>): boolean => {
142 for (const value of self) {
143 if (!has(that, value as any)) {
144 return false
145 }
146 }
147 return true
148}
149
150/** @internal */
151export const map = <V, U>(self: HashSet<V>, f: (value: V) => U): HashSet<U> => {

Callers

nothing calls this directly

Calls 1

hasFunction · 0.70

Tested by

no test coverage detected