Next revision
|
Previous revision
|
manual:chapter6:stack [2018/03/13 15:55] claudio created |
manual:chapter6:stack [2021/08/13 13:12] (current) |
<accordion> | <button collapse="stack-commands" block="true" >**Stack manipulation** <badge>27</badge> <badge>5 NEW</badge></button> |
<panel title="Stack Manipulation" icon="glyphicon glyphicon-triangle-right"> | <collapse id="stack-commands" collapsed="true"> |
This group of commands deals with the stack. | |
^ Command ^ Description ^ | ^ Command ^ Short Description ^ ^ |
| **DROP** | Drops one level of the stack | | | **[[manual:chapter6:stack:cmd_clear|CLEAR]]** | Remove all objects from the stack | | |
</panel> | | **[[manual:chapter6:stack:cmd_depth|DEPTH]]** | Get the current stack depth | | |
</accordion> | | **[[manual:chapter6:stack:cmd_drop|DROP]]** | Remove an object from the stack | | |
| | **[[manual:chapter6:stack:cmd_drop2|DROP2]]** | Remove two objects form the stack | | |
| | **[[manual:chapter6:stack:cmd_dropn|DROPN]]** | Remove N objects from the stack | | |
| | **[[manual:chapter6:stack:cmd_dup|DUP]]** | Duplicate an object on the stack | | |
| | **[[manual:chapter6:stack:cmd_dup2|DUP2]]** | Duplicate two objects on the stack | | |
| | **[[manual:chapter6:stack:cmd_dupdup|DUPDUP]]** | Duplicate the same object twice on the stack | | |
| | **[[manual:chapter6:stack:cmd_dupn|DUPN]]** | Duplicate a group of N objects | | |
| | **[[manual:chapter6:stack:cmd_ndupn|NDUPN]]** | Replicate one object N times and return N | | |
| | **[[manual:chapter6:stack:cmd_nip|NIP]]** | Remove object at level 2 on the stack | | |
| | **[[manual:chapter6:stack:cmd_over|OVER]]** | Duplicate object at level 2 on the stack | | |
| | **[[manual:chapter6:stack:cmd_pick|PICK]]** | Duplicate object at position N on the stack | | |
| | **[[manual:chapter6:stack:cmd_pick3|PICK3]]** | Duplicate object at level 3 on the stack | | |
| | **[[manual:chapter6:stack:cmd_roll|ROLL]]** | Move object at level N to level 1 | | |
| | **[[manual:chapter6:stack:cmd_rolld|ROLLD]]** | Move object from level 1 to level N | | |
| | **[[manual:chapter6:stack:cmd_rot|ROT]]** | Move object from level 3 to level 1 | | |
| | **[[manual:chapter6:stack:cmd_swap|SWAP]]** | Exchange objects in levels 1 and 2 | | |
| | **[[manual:chapter6:stack:cmd_unpick|UNPICK]]** | Move object from level 1 to level N. | | |
| | **[[manual:chapter6:stack:cmd_unrot|UNROT]]** | Move object from level 1 to level 3 | | |
| | **[[manual:chapter6:stack:cmd_ift|IFT]]** | Evaluate objects on the stack conditionally | | |
| | **[[manual:chapter6:stack:cmd_ifte|IFTE]]** | Evaluate objects on the stack conditionally | | |
| | **[[manual:chapter6:stack:cmd_stkpush|STKPUSH]]** | Push a snapshot of the current stack on the undo stack | <badge>NEW</badge> | |
| | **[[manual:chapter6:stack:cmd_stkpop|STKPOP]]** | Pop a stack snapshot from the undo stack | <badge>NEW</badge> | |
| | **[[manual:chapter6:stack:cmd_stkdrop|STKDROP]]** | Drop a snapshot from the undo stack | <badge>NEW</badge> | |
| | **[[manual:chapter6:stack:cmd_stkpick|STKPICK]]** | Copy snapshot in level N to the current stack | <badge>NEW</badge> | |
| | **[[manual:chapter6:stack:cmd_stkdepth|STKDEPTH]]** | Get the depth of the undo stack | <badge>NEW</badge> | |
| </collapse> |