Hash_Map module

insert

procedure · 1 overloadsince 0.23.0Source

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

See also