This language bar is your friend. Select your favorite languages!

Idiom #172 Insert entry in map

Insert value v for key k in map m.

m.KeyData[k] := v;
m[k] = v;
m[k] = v
$m[$k] = $v;
m[k] = v
m[k] = v

Do you know the best way to do this in your language ?
New implementation...

Idiom created by


Related idioms