swap
Input Stack:
|
⇨ | Output Stack:
|
Swap the top two items on the stack.
Example:
a,b,:swap
Pos | Input | Output |
---|---|---|
0 | b | a |
1 | a | b |
Input Stack:
|
⇨ | Output Stack:
|
Swap the top two items on the stack.
Example:
a,b,:swap
Pos | Input | Output |
---|---|---|
0 | b | a |
1 | a | b |