map.add

Syntax

b = map.add(m,k,a)

Add a value to a map. If a value was associated with the key k previously, then the value is replaced with a.

Returns:

b - Boolean indicating success

Arguments:

m - map

k - number or string used as the key

a - value associated with the key k