Stores the value under the key. Returns the value it replaced (zero if there was none) and whether there was one.
insert :: (
map: *Map,
key: map.Key,
value: map.Value
) -> (previous: map.Value, replaced: bool)
Stores the value under the key. Returns the value it replaced (zero if there was none) and whether there was one.
Parameters
- map: *Map
- key: map.Key
- value: map.Value
Returns
- previous: map.Value
- replaced: bool