Maps
## Maps
`map<K, V>` holds values by key, in the order keys were added. Create with `map.new<string, float>()` (declare
with `map<string, float> m = na`). Keys: int, float, string, color or an enum; values: anything an array can
hold, also objects and enums (no maps of arrays or maps; wrap them in a user type). Methods: `m.put(k, v)`
(returns the previous value or na), `m.get(k)` (na when missing), `m.contains(k)`, `m.remove(k)`,
`m.size()`, `m.clear()`, `m.keys()` / `m.values()` (new arrays), `m.copy()`, `m.put_all(other)`.
- Loop with `for [k, v] in m` (always key and value): it runs over the keys the map had when the loop started;
a key removed in the body reads as na.
- A map value is a handle like an array: `var m = map.new<...>()` keeps one map across bars, without var a new
map is made on every bar. No history (`m[1]`), not in ta.* functions or nz, not in request.security. At most
50,000 keys; a put with an na key or any call on an na map stops the script.
```lynt
indicator("Volume by hour")
var byHour = map.new<int, float>()
byHour.put(hour, nz(byHour.get(hour)) + volume)
best = 0
for [h, v] in byHour
if v > nz(byHour.get(best))
best := h
plot(best, "Busiest hour")
```