effect-io-ai

Package: effect
Module: HashMap

HashMap.reduce

Reduces the specified state over the entries of the HashMap.

Signature

declare const reduce: { <Z, V, K>(zero: Z, f: (accumulator: Z, value: V, key: K) => Z): (self: HashMap<K, V>) => Z; <K, V, Z>(self: HashMap<K, V>, zero: Z, f: (accumulator: Z, value: V, key: K) => Z): Z; }

Source

Since v2.0.0