Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ clear
Function
clear
packages/effect/src/TxHashMap.ts:564–564 ·
view source on GitHub ↗
(self: TxHashMap<K, V>)
Source
from the content-addressed store, hash-verified
562
* @since 4.0.0
563
*/
564
export
const
clear = <K, V>(self: TxHashMap<K, V>): Effect.Effect<void> => TxRef.set(self.ref, HashMap.empty<K, V>())
565
566
/**
567
* Returns the number of entries in the TxHashMap.
Callers
nothing calls this directly
Calls
1
set
Method · 0.65
Tested by
no test coverage detected