map.put
Sets the value for a key (a new key is added last). Returns the previous value, or na for a new key.
map.put(id: map<K, V>, key: key type, value: value type) -> value type
Parameters
idmap<K, V>: The map; na stops the script with a runtime error (create it with map.new<K, V>() first).keykey type: a value of the map key typevaluevalue type: a value of the map value type
Example
prices.put("ES", close)