mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
map_insert overrides existing key
This commit is contained in:
parent
a9e05dca15
commit
210a69e2c9
@ -2,9 +2,11 @@
|
||||
"name": "map_insert",
|
||||
"type": "function",
|
||||
"groups": ["Maps"],
|
||||
"description": "Returns a map with an added key/value.",
|
||||
"description": "Returns a map with an added key/value. If the key already exists, its value is overridden.",
|
||||
"arguments": [ {"arg":"map","description":"a map"},
|
||||
{"arg":"key","description":"the key to add"},
|
||||
{"arg":"value","description":"the value to add"}],
|
||||
"examples": [ { "expression":"map_insert(map('1','one'),'3','three')", "returns":"{ '1': 'one', '3': 'three' }"}]
|
||||
"examples": [ { "expression":"map_insert(map('1','one'),'3','three')", "returns":"{ '1': 'one', '3': 'three' }"},
|
||||
{ "expression":"map_insert(map('1','one','2','overridden'),'2','two')", "returns":"{ '1': 'one', '2': 'two' }"}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user