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

Function make

packages/effect/src/internal/hashSet.ts:88–94  ·  view source on GitHub ↗
(...elements: As)

Source from the content-addressed store, hash-verified

86
87/** @internal */
88export const make = <As extends ReadonlyArray<any>>(...elements: As): HS.HashSet<As[number]> => {
89 const set = beginMutation(empty<As[number]>())
90 for (const value of elements) {
91 add(set, value)
92 }
93 return endMutation(set)
94}
95
96/** @internal */
97export const has = dual<

Callers

nothing calls this directly

Calls 4

beginMutationFunction · 0.70
emptyFunction · 0.70
addFunction · 0.70
endMutationFunction · 0.70

Tested by

no test coverage detected