...
Info | ||
---|---|---|
| ||
This routine is available since starting with katl-commons 1.0. |
Description
...
Excerpt |
---|
If elem is an element of the array type, returns a new array without the specified element. |
Alias
...
deleteElement(arrayName, elem)
Parameters
...
Parameter name | Type | Required | Description |
---|---|---|---|
arrayName | array | Yes | The array from which the new element is deleted |
elem | any | Yes | The element to be deleted. Must be the same type as the array type |
Return Type
...
array
Example
...
Code Block |
---|
watchers = deleteElement(watchers, currentUser()); |
The result returned by the routine is assigned to the the same array watchers, so the initial array watchers will be modified.
Notes
...
Note |
---|
|
...
Info | ||
---|---|---|
| ||
Since Starting with version 2.5, there is a more powerful way to express these operations: array = array - element; or even better array -= element; |
See
...
also
Filter by label (Content by label) showLabels false max 100 showSpace false cql label = "array_routines" labels array_routines