Hyperlinkv0.8.0-beta.28

HashMap

HashMap.emptyconsteffect/HashMap.ts:246
<K = never, V = never>(): HashMap<K, V>

Creates a new empty HashMap.

Example (Creating an empty HashMap)

import { HashMap } from "effect"

const map = HashMap.empty<string, number>()
console.log(HashMap.isEmpty(map)) // true
console.log(HashMap.size(map)) // 0
constructors
Source effect/HashMap.ts:2461 lines
export const empty: <K = never, V = never>() => HashMap<K, V> = internal.empty
Referenced by 2 symbols