Logo

Programming-Idioms

# 331 Clear map
Remove all entries from the map m.

Explain if other references to the same map now see an empty map as well.
New implementation

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.

Other implementations
m.clear()
clear(m)
m.clear()
m.clear();
%m = ();
m.clear()
m.clear