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

Function empty

packages/effect/src/MutableHashMap.ts:144–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 * @since 2.0.0
143 */
144export const empty = <K, V>(): MutableHashMap<K, V> => {
145 const self = Object.create(MutableHashMapProto)
146 self.backing = new Map()
147 self.buckets = new Map()
148 return self
149}
150
151/**
152 * Creates a MutableHashMap from a variable number of key-value pairs.

Callers 1

fromIterableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected