update abstract method
Reactively updates the value for key
.
Uses ifAbsent
if key
does not already exist.
Implementation
ComputedMap<K, V> update(
// Note that the computed variant is trivial
K key,
V Function(V value) update,
{V Function()? ifAbsent});