Hyperlinkv0.8.0-beta.28

HashMap

HashMap.keysconsteffect/HashMap.ts:544
<K, V>(self: HashMap<K, V>): IterableIterator<K>

Returns an IterableIterator of the keys within the HashMap.

Example (Iterating keys)

import { HashMap } from "effect"

const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
const keys = Array.from(HashMap.keys(map))
console.log(keys.sort()) // ["a", "b", "c"]
getters
Source effect/HashMap.ts:5441 lines
export const keys: <K, V>(self: HashMap<K, V>) => IterableIterator<K> = internal.keys
Referenced by 1 symbols