stable-maps-0.0.1: Heterogeneous maps keyed by StableNames




data Map a Source

insertWith :: (a -> a -> a) -> DynamicStableName -> a -> Map a -> Map aSource

O(log n). Insert with a function for combining the new value and old value. insertWith f key value mp will insert the pair (key, value) into mp if the key does not exist in the map. If the key does exist, the function will insert the pair (key, f new_value old_value)