MCPcopy Create free account
hub / github.com/Effect-TS/effect / [Symbol.iterator]

Function [Symbol.iterator]

packages/effect/src/MutableHashSet.ts:94–96  ·  view source on GitHub ↗
(this: MutableHashSet<unknown>)

Source from the content-addressed store, hash-verified

92const MutableHashSetProto: Omit<MutableHashSet<unknown>, "keyMap"> = {
93 [TypeId]: TypeId,
94 [Symbol.iterator](this: MutableHashSet<unknown>): Iterator<unknown> {
95 return Array.from(this.keyMap).map(([_]) => _)[Symbol.iterator]()
96 },
97 toString() {
98 return `MutableHashSet(${format(Array.from(this))})`
99 },

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected