==== DROP ==== ---- ---- Remove one object from the top of the stack ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **O** | **→** | | | //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**| [[manual:appendix:flags#flag-28|-28]] | RPL / RPN stack mode | |:::| [[manual:appendix:flags#flag-29|-29]] | RPN stack depth | ---- The ''DROP'' command deletes the object on the top of the stack, shifting the remaining ones by one level. When the stack is in RPN mode ''DROP'' fills immediately the bottom-most level of the stack (level 4 or level 8, depending on the selected stack depth) with the value it stored before the shift happened. ---- This command is only partially compatible with userRPL. In particular: * In userRPL RPN stack mode is not supported. ---- 3: "This is a string" 2: { 'X' 'Y' 'Z' } 1: 1_m …………………………………………………………………………………… DROP will result in 2: "This is a string" 1: { 'X' 'Y' 'Z' } …………………………………………………………………………………… ---- {{page>manual:chapter6:stack&nofooter&noeditbtn&inline}}