MCPcopy
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

packages/effect/src/MutableHashMap.ts:130–136  ·  view source on GitHub ↗
(entries: Iterable<readonly [K, V]>)

Source from the content-addressed store, hash-verified

128 * @category constructors
129 */
130export const fromIterable = <K, V>(entries: Iterable<readonly [K, V]>): MutableHashMap<K, V> => {
131 const self = empty<K, V>()
132 for (const [key, value] of entries) {
133 set(self, key, value)
134 }
135 return self
136}
137
138/**
139 * @since 2.0.0

Callers 1

makeFunction · 0.70

Calls 2

emptyFunction · 0.70
setFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…