Skip to content
Algo Trade Analytics Docs

map.put_all() - Pine Script Function

Puts all key-value pairs from the id2 map into the id map.

map.put_all(id, id2) → void
NameTypeDescription
idany map typeA map object to append to.
//@version=6
indicator("map.put_all example")
a = map.new<string, float>()b = map.new<string, float>()a.put("first", 10)a.put("second", 15)b.put("third", 20)map.put_all(a, b)
plot(a.get("third"))