fn fetchPut(self: *Self, key: Key, value: Value) ?Value

Sets the value associated with the key in the map, and returns the old value. If the key was not in the map, returns null.

Parameters

self: *Self,
key: Key,
value: Value,