effect-io-ai

Package: effect
Module: MutableHashMap

MutableHashMap.modify

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

Signature

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

Source

Since v2.0.0