MCPcopy Index your code
hub / github.com/Effect-TS/effect / toHashSet

Function toHashSet

packages/effect/src/internal/stm/tSet.ts:220–225  ·  view source on GitHub ↗
(self: TSet.TSet<A>)

Source from the content-addressed store, hash-verified

218
219/** @internal */
220export 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 */
228export const toArray = <A>(self: TSet.TSet<A>): STM.STM<Array<A>> =>

Callers 1

tSet.tsFile · 0.85

Calls 3

addMethod · 0.65
reduceFunction · 0.50
pipeFunction · 0.50

Tested by

no test coverage detected