mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
22 lines
536 B
Plaintext
22 lines
536 B
Plaintext
{
|
|
"name": "array_insert",
|
|
"type": "function",
|
|
"groups": ["Arrays"],
|
|
"description": "Returns an array with the given value added at the given position.",
|
|
"arguments": [{
|
|
"arg": "array",
|
|
"description": "an array"
|
|
}, {
|
|
"arg": "pos",
|
|
"description": "the position where to add (0 based)"
|
|
}, {
|
|
"arg": "value",
|
|
"description": "the value to add"
|
|
}],
|
|
"examples": [{
|
|
"expression": "array_insert(array(1,2,3),1,100)",
|
|
"returns": "[ 1, 100, 2, 3 ]"
|
|
}],
|
|
"tags": ["array", "added", "position"]
|
|
}
|