Next revision
|
Previous revision
|
manual:chapter6:stack:cmd_drop2 [2019/10/18 14:22] jojo1973 created |
manual:chapter6:stack:cmd_drop2 [2019/11/28 14:52] (current) jojo1973 Added flags -28 and -29 |
<callout color="green" icon="fa fa-indent" title="Stack Diagram"> | <callout color="green" icon="fa fa-indent" title="Stack Diagram"> |
---- | ---- |
^ __Input Stack__ ^ ^ __Output Stack__ ^ | ^ __Input Stack__ ^^ ^ __Output Stack__ ^ |
| **O<sub>2</sub>** | **O<sub>1</sub>** | **→** | | | | **O<sub>2</sub>** | **O<sub>1</sub>** | **→** | | |
| //Level 2// | //Level 1// | **→** | //Level 1// | | | //Level 2// | //Level 1// | //→// | //Level 1// | |
| |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} |
| |
|**Type**| [[manual:chapter5:basics#operators|Command]] || | |**Type**| [[manual:chapter5:basics#commands|Command]] || |
|**Parallel list processing**| [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] || | |**Parallel list processing**| [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] || |
|**Affected by flags**| None || | |**Affected by flags**| [[manual:appendix:flags#flag-28|-28]] | RPL / RPN stack mode | |
| |:::| [[manual:appendix:flags#flag-29|-29]] | RPN stack depth | |
</callout> | </callout> |
| |
<callout color="orangered" icon="fa fa-comment" title="Description"> | <callout color="orangered" icon="fa fa-comment" title="Description"> |
---- | ---- |
The ''DROP2'' command deletes two objects on the top two levels of the stack, letting the remaining ones to drop two places. | The ''DROP2'' command deletes the top two objects on the stack, shifting the remaining ones by two levels. |
| |
| When the stack is in RPN mode ''DROP2'' fills immediately the two bottom-most level of the stack (levels 3/4 or levels 7/8, depending on the selected stack depth) with the value stored in the bottom-most level before the shift happened. |
</callout> | </callout> |
| |
<callout type="success" icon="true" title="Compatibility"> | <callout type="warning" icon="true" title="Compatibility"> |
---- | ---- |
This command is fully compatible with userRPL. | This command is only partially compatible with userRPL. |
| |
| In particular: |
| * In userRPL RPN stack mode is not supported. |
</callout> | </callout> |
| |