(self: FiberId.FiberId)
| 246 | |
| 247 | /** @internal */ |
| 248 | export const toSet = (self: FiberId.FiberId): HashSet.HashSet<FiberId.Runtime> => { |
| 249 | switch (self._tag) { |
| 250 | case OP_NONE: { |
| 251 | return HashSet.empty() |
| 252 | } |
| 253 | case OP_RUNTIME: { |
| 254 | return HashSet.make(self) |
| 255 | } |
| 256 | case OP_COMPOSITE: { |
| 257 | return pipe(toSet(self.left), HashSet.union(toSet(self.right))) |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /** @internal */ |
| 263 | export const unsafeMake = (): FiberId.Runtime => { |