User Tools

Site Tools


crpl:docs:prependstacktolist

<- CRPL reference <- Lists

PrependStackToList

ArgumentsResultNotation
Value1, Value2, … Valuen, List None n1 n2 … n… L1 –

Inserts the contents of the stack at the beginning of L1 (at index 0) and shifts the index of all other elements in the list up by the number of elements on the stack.

Description

#prepends the stack to the beginning of list01
"Hello" "Creeper" "World" <-list01 PrependStackToList

Sample list01:
0 - foo
1 - bar

Sample list01 after PrependToList command:
0 - Hello
1 - Creeper
2 - World
3 - foo
4 - bar

crpl/docs/prependstacktolist.txt · Last modified: 2021/02/05 11:44 by Karsten75