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

Function toSet

packages/effect/src/internal/supervisor/patch.ts:143–153  ·  view source on GitHub ↗
(self: Supervisor.Supervisor<any>)

Source from the content-addressed store, hash-verified

141
142/** @internal */
143const toSet = (self: Supervisor.Supervisor<any>): HashSet.HashSet<Supervisor.Supervisor<any>> => {
144 if (Equal.equals(self, supervisor.none)) {
145 return HashSet.empty()
146 } else {
147 if (supervisor.isZip(self)) {
148 return pipe(toSet(self.left), HashSet.union(toSet(self.right)))
149 } else {
150 return HashSet.make(self)
151 }
152 }
153}
154
155/** @internal */
156export const diff = (

Callers 1

diffFunction · 0.70

Calls 2

makeMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…