Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Groovy
m.k = v

Uses property notation. Note: this uses the literal string value k as the key.
m[k] = v

Use index notation. The value of k is used as the key. This delegates to the regular putAt method.
(assoc m k v)

Returns a new map.

New implementation...