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

Function every

packages/effect/src/internal/hashSet.ts:174–181  ·  view source on GitHub ↗
(self: HashSet<V>, predicate: (value: V) => boolean)

Source from the content-addressed store, hash-verified

172
173/** @internal */
174export const every = <V>(self: HashSet<V>, predicate: (value: V) => boolean): boolean => {
175 for (const value of self) {
176 if (!predicate(value)) {
177 return false
178 }
179 }
180 return true
181}
182
183/** @internal */
184export const reduce = <V, U>(self: HashSet<V>, zero: U, f: (accumulator: U, value: V) => U): U => {

Callers 1

[Equal.symbol]Function · 0.70

Calls 1

predicateFunction · 0.85

Tested by

no test coverage detected