(self: TSet.TSet<A>)
| 218 | |
| 219 | /** @internal */ |
| 220 | export const toHashSet = <A>(self: TSet.TSet<A>): STM.STM<HashSet.HashSet<A>> => |
| 221 | reduce( |
| 222 | self, |
| 223 | HashSet.empty<A>(), |
| 224 | (acc, value) => pipe(acc, HashSet.add(value)) |
| 225 | ) |
| 226 | |
| 227 | /** @internal */ |
| 228 | export const toArray = <A>(self: TSet.TSet<A>): STM.STM<Array<A>> => |