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

Function fromIterable

packages/effect/src/internal/trie.ts:140–146  ·  view source on GitHub ↗
(entries: Iterable<readonly [string, V]>)

Source from the content-addressed store, hash-verified

138
139/** @internal */
140export const fromIterable = <V>(entries: Iterable<readonly [string, V]>) => {
141 let trie = empty<V>()
142 for (const [key, value] of entries) {
143 trie = insert(trie, key, value)
144 }
145 return trie
146}
147
148/** @internal */
149export const make = <Entries extends Array<readonly [string, any]>>(...entries: Entries): TR.Trie<

Callers 2

makeFunction · 0.70
makeFunction · 0.70

Calls 2

emptyFunction · 0.70
insertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…