<- CRPL reference <- Lists

InsertListElement

ArgumentsResultNotation
List, Index, Value None L1 i1 n1 –

Description

Inserts the value n1 at element location i1 in list L1, pushing the previous i1 element and all subsequent elements up by one.

Examples

#Inserts the value of 5 at element #3 of list01
<-list01 2 5 InsertListElement

Sample list list01 before:
0 - 100
1 - 105
2 - 110
3 - 115

Sample list list01 after sample command:
0 - 100
1 - 105
2 - 5
3 - 110
4 - 115