Name
remove — Removes element from a list
Synopsis
list
remove
( |
list
LIST
, |
|
integer
e
) ; |
Parameters
-
list
LIST
-
integer
e
element index
Return
-
list
Returns unchanged list if the index is invalid.
Description
Removes the i
'th value from a list. The first value has the index 0. The call remove ([1,2,3], 1) thus returns [1,3].
The yast2-core version < 2.17.16 returns nil if the key is invalid. This behavior has changed in version 2.17.16 to return unchanged list.
Usage
remove ([1, 2], 0) -> [2]