effect-io-ai

Package: effect
Module: HashMap

HashMap.values

Returns an IterableIterator of the values within the HashMap.

Example (Iterating values)

import { HashMap } from "effect"

const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
const values = Array.from(HashMap.values(map))
console.log(values.sort()) // [1, 2, 3]

Signature

declare const values: <K, V>(self: HashMap<K, V>) => IterableIterator<V>

Source

Since v2.0.0