map.add

Syntax

b := map.add(m,akey,avalue)

Adds a key/value pair to a map.

If a value was associated with the key akey previously, then the value is replaced with avalue.

Returns:

b - Boolean indicating success

Arguments:

m - map

akey - value used as the key

avalue - value associated with the key akey