Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(dissoc m k)
Returns a new map without the key k. If k doesn't exist the original map is returned unaltered.
m.erase(k);
Does nothing if there is not entry for key k.
m.remove(k);
Map myMap = {};
myMap.remove(key)
Removes from
m = Map.delete(m, k)
If the key does not exist, the map is unchanged.
delete k m
If k is not in m, then original Map is returned.
m.delete(k)
m has type Map
map.remove(k);
Remove the entry for the key k from the map.
Returns null if the map does not have an entry for k
Returns null if the map does not have an entry for k
m[k]=nil
Does nothing, if k is not an existing key in m
delete $m{$k}; # also succeeds when $k does not exist in %m
m.pop(k, None)
A missing key will leave the map unchanged.
If the second parameter is omitted, a missing key will raise the exception KeyError
If the second parameter is omitted, a missing key will raise the exception KeyError
m.delete(k)
returns nil if k is absent
m -= k
This mutates the map m, removing k from it. If k doesn't exist in m, no error occurs. Only available on mutable Map. The default implementation of Map is a HashMap.
m - k
The map m is not mutated, and a new map is returned instead. If k doesn't exist in m, no error occurs. The default implementation of Map is a HashMap.