==== DROPN ====
----
----
Remove N+1 objects from the top of the stack
----
^ __Input Stack__ ^^^^ ^ __Output Stack__ ^
| **On** | **...** | **O1** | **In** | **→** | |
| //Level n+1// | //...// | //Level 2// | //Level 1// | **→** | //Level 1// |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
|**Type**| [[manual:chapter5:basics#commands|Command]] ||
|**Parallel list processing**| [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] ||
|**Affected by flags**| None ||
----
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.
----
This command is fully compatible with userRPL.
----
6: ∡60°
5: 123
4: "This is a string"
3: { 'X' 'Y' 'Z' }
2: 1_m
1: 3
……………………………………………………………………………………
DROPN
will result in
2: ∡60°
1: 123
……………………………………………………………………………………
----
{{page>manual:chapter6:stack&nofooter&noeditbtn&inline}}