Index
Lists

SetListElementRPN

SetListElementRPN(<-value <-list <-index)

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, setting a value in it can be abbreviated to <-value ->list[<-index], which will be executed as <-value <-list <-index SetListelementRPN

For doing the same thing but with arguments in order of list, index, value, see SetListElement

Examples

1 2 3 4 5 6 ListN(6) ->list1
1 2 3 4 5 6 ListN(6) ->list2
 
0 ->index
 
"one" <-list1 <-index SetListelementRPN
# does the same as
"one" ->list2 [<-index]
 
<-list1 Trace
<-list2 Trace
 
# OUTPUT:
# [one, 2, 3, 4, 5, 6]
# [one, 2, 3, 4, 5, 6]

Index