MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

packages/effect/src/MutableHashSet.ts:185–186  ·  view source on GitHub ↗
(keys: Iterable<K>)

Source from the content-addressed store, hash-verified

183 * @since 2.0.0
184 */
185export const fromIterable = <K = never>(keys: Iterable<K>): MutableHashSet<K> =>
186 fromHashMap(MutableHashMap.fromIterable(Array.from(keys).map((k) => [k, true])))
187
188/**
189 * Creates a MutableHashSet from a variable number of values.

Callers 1

makeFunction · 0.70

Calls 2

fromHashMapFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected