Logo

Programming-Idioms

  • Smalltalk
  • C#

Idiom #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.

m.Clear();

All references see it's empty.
m.clear()

clears the entries from Map m

New implementation...
< >
programming-idioms.org