map.put_all
Puts every key and value of id2 into id (existing keys get id2's value).
map.put_all(id: map<K, V>, id2: map<K, V>)
Parameters
idmap<K, V>: The map that gets the keys; na stops the script with a runtime error.id2map<K, V>: The map whose keys and values are put into id; it stays as it is. na stops the script with a runtime error.
Example
prices.put_all(prices.copy())