map.put_all() - Pine Script Function
map.put_all()
Section titled “map.put_all()”Overview
Section titled “Overview”Puts all key-value pairs from the id2 map into the id map.
Syntax
Section titled “Syntax”map.put_all(id, id2) → voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | any map type | A map object to append to. |
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("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"))