QGIS/resources/function_help/json/array_remove_at
Alex 2175337568 Update resources/function_help/json/array_remove_at
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-31 13:31:02 +10:00

11 lines
581 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 ]"}]
}