QGIS/resources/function_help/json/array_remove_at
2022-01-31 07:46:22 -05:00

12 lines
622 B
Plaintext

{
"name": "array_remove_at",
"type": "function",
"groups": ["Arrays"],
"description": "Returns an array with the item at the given index removed. Supports positive (0 for the first element) and negative (the last -Nth value, -1 for the last element) index.",
"arguments": [ {"arg":"array","description":"an array"},
{"arg":"pos","description":"the position to remove (0 based)"}],
"examples": [ { "expression":"array_remove_at(array(1, 2, 3), 1)", "returns":"[1, 3 ]"},
{ "expression":"array_remove_at(array(1, 2, 3), -1)", "returns":"[1, 2 ]"}],
"tags": ["array", "removed", "index"]
}