pick
Input Stack:
|
⇨ | Output Stack:
|
Pick an item in the stack and put a copy on the top.
Since: 1.5.0
Example:
a,0,:pick
Pos | Input | Output |
---|---|---|
0 | 0 | a |
1 | a | a |
a,b,0,:pick
Pos | Input | Output |
---|---|---|
0 | 0 | b |
1 | b | b |
2 | a | a |
a,b,1,:pick
Pos | Input | Output |
---|---|---|
0 | 1 | a |
1 | b | b |
2 | a | a |