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

Function fromIterable

packages/effect/src/internal/hashMap.ts:193–199  ·  view source on GitHub ↗
(entries: Iterable<readonly [K, V]>)

Source from the content-addressed store, hash-verified

191
192/** @internal */
193export const fromIterable = <K, V>(entries: Iterable<readonly [K, V]>): HM.HashMap<K, V> => {
194 const map = beginMutation(empty<K, V>())
195 for (const entry of entries) {
196 set(map, entry[0], entry[1])
197 }
198 return endMutation(map)
199}
200
201/** @internal */
202export const isHashMap: {

Callers 1

makeFunction · 0.70

Calls 4

beginMutationFunction · 0.70
emptyFunction · 0.70
endMutationFunction · 0.70
setFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…