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

Function fromIterable

packages/effect/src/internal/hashSet.ts:79–85  ·  view source on GitHub ↗
(elements: Iterable<A>)

Source from the content-addressed store, hash-verified

77
78/** @internal */
79export const fromIterable = <A>(elements: Iterable<A>): HS.HashSet<A> => {
80 const set = beginMutation(empty<A>())
81 for (const value of elements) {
82 add(set, value)
83 }
84 return endMutation(set)
85}
86
87/** @internal */
88export const make = <As extends ReadonlyArray<any>>(...elements: As): HS.HashSet<As[number]> => {

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…