import { concreteTSet } from "@effect/core/stm/TSet/operations/_internal/InternalTSet"
/**
* Collects all elements into a hash set.
*
* @tsplus getter effect/core/stm/TSet toHashSet
*/
export function toHashSet(self: TSet): USTM> {
concreteTSet(self)
return self.toList.map((_) => _.toHashSet)
}