Next revision
|
Previous revision
|
manual:chapter6:stack:cmd_dropn [2019/10/18 14:35] jojo1973 created |
manual:chapter6:stack:cmd_dropn [2019/10/22 14:55] jojo1973 Fixed internal link |
<callout type="primary" color="" icon="fa fa-book" title="Synopsis"> | <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> |
---- | ---- |
Remove n+1 objects from the top of the stack | Remove N+1 objects from the top of the stack |
</callout> | </callout> |
| |
---- | ---- |
^ __Input Stack__ ^^^^ ^ __Output Stack__ ^ | ^ __Input Stack__ ^^^^ ^ __Output Stack__ ^ |
| **O<sub>n+1</sub>** | **...** | **O<sub>1</sub>** | **I<sub>n</sub>** | **→** | | | | **O<sub>n</sub>** | **...** | **O<sub>1</sub>** | **I<sub>n</sub>** | **→** | | |
| //Level n+1// | //...// | //Level 2// | //Level 1// | **→** | //Level 1// | | | //Level n+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**| None || |
<callout color="orangered" icon="fa fa-comment" title="Description"> | <callout color="orangered" icon="fa fa-comment" title="Description"> |
---- | ---- |
The ''DROPN'' command deletes n+1 objects on the stack (i.e. n objects and the ''DROPN'' argument itself), letting the remaining ones to drop n+1 places. | The ''DROPN'' command deletes the top N+1 objects on the stack (i.e. N objects and the ''DROPN'' argument itself), shifting the remaining ones by N+1 levels. |
</callout> | </callout> |
| |