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