Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Clojure
(assoc m k v)

Returns a new map.
m[k] = v;

std::map<>::operator[] will either insert or update the value.

New implementation...