std.collections.Map.Add - nitrologic/monkey2 GitHub Wiki

std::.std.collections.Map.Add

Method Add:[monkey:monkey.types.Bool|Bool]

Adds a new key/value pair to a map.

If the map does not contain `key', a new key/value node is created and true is returned.

If the map already contains key, nothing happens and false is returned.

Parameters
key key The key.
value value The value.
⚠️ **GitHub.com Fallback** ⚠️