User Tools

Site Tools


4rpl:commands:removelistelement

Index
Lists

RemoveListElement

RemoveListElement(<-list, <-index)

Description

Removes an element from a list at a given position. Position are indexed from 0.

Elements after the removed one will be shifted towards the start of the list.

Examples

CreateList ->list
"a" ->list[0]
"b" ->list[1]
"c" ->list[2]
RemoveListElement(<-list 1)  #["a", "c"]
CreateList ->list
"a" ->list[0]
"b" ->list[1]
"c" ->list[2]
RemoveListElement(<-list GetIndexOf(<-list "b"))  #["a", "c"]

Index

4rpl/commands/removelistelement.txt · Last modified: 2024/09/13 13:42 by Vertu