User Tools

Site Tools


prpl:setlistelement

This is an old revision of the document!


<- PRPL reference <- Lists

SetListElement

ArgumentsResultNotation
list int value [list int value-]

Description

Stores a value at the specified index of a list. The previously stored value is overwritten.

If a list is stored in a variable, this can be abbreviated to <-value ->list[<-index].

Examples

Split("1,2,3,4,5,6" ",") ->list 
SetListElement(<-list 2 "G") 
"R" ->list[4] 
Trace(<-list) 
prpl/setlistelement.1480721630.txt.gz · Last modified: 2017/08/30 08:44 (external edit)