map.copy
A new map with the same keys and values (objects in it are shared, not copied).
map.copy(id: map<K, V>) -> map<K, V>
Parameters
idmap<K, V>: The map; na stops the script with a runtime error (create it with map.new<K, V>() first).
Example
saved = prices.copy()