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

Function fromIterable

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

Source from the content-addressed store, hash-verified

188 * @since 2.0.0
189 */
190export const fromIterable = <K = never>(keys: Iterable<K>): MutableHashSet<K> =>
191 fromHashMap(MutableHashMap.fromIterable(Array.from(keys).map((k) => [k, true])))
192
193/**
194 * Creates a MutableHashSet from a variable number of values.

Callers 1

makeFunction · 0.70

Calls 3

fromHashMapFunction · 0.85
fromMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected