-rot
Input Stack:
|
⇨ | Output Stack:
|
Rotate the stack so that the item at the top is now at the bottom.
Example:
a,b,c,d,:-rot
Pos | Input | Output |
---|---|---|
0 | d | c |
1 | c | b |
2 | b | a |
3 | a | d |
Input Stack:
|
⇨ | Output Stack:
|
Rotate the stack so that the item at the top is now at the bottom.
Example:
a,b,c,d,:-rot
Pos | Input | Output |
---|---|---|
0 | d | c |
1 | c | b |
2 | b | a |
3 | a | d |