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