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

Function clear

packages/effect/src/MutableHashMap.ts:747–751  ·  view source on GitHub ↗
(self: MutableHashMap<K, V>)

Source from the content-addressed store, hash-verified

745 * @since 2.0.0
746 */
747export const clear = <K, V>(self: MutableHashMap<K, V>) => {
748 self.backing.clear()
749 self.buckets.clear()
750 return self
751}
752
753/**
754 * Returns the number of key-value pairs in the MutableHashMap.

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected