effect-io-ai

Package: effect
Module: HashMap

HashMap.modify

Updates the value of the specified key within the HashMap if it exists.

Signature

declare const modify: { <K, V>(key: K, f: (v: V) => V): (self: HashMap<K, V>) => HashMap<K, V>; <K, V>(self: HashMap<K, V>, key: K, f: (v: V) => V): HashMap<K, V>; }

Source

Since v2.0.0