Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:chapter6:stack:cmd_drop [2018/03/20 07:35] claudio |
manual:chapter6:stack:cmd_drop [2019/11/28 14:44] (current) jojo1973 Added flags -28 and -29 |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== DROP ==== | ==== DROP ==== | ||
---- | ---- | ||
- | <callout color=" | + | < |
- | ^ Input Stack ^ ^ Output Stack ^ | + | ---- |
- | | **O** | → | << | + | Remove one object from the top of the stack |
+ | </ | ||
+ | |||
+ | <callout color=" | ||
+ | ---- | ||
+ | ^ | ||
+ | | **O** | **→** | ||
+ | | //Level 1// | // | ||
{{page> | {{page> | ||
- | | **Command category** | [[..:|Stack]] | | + | |**Type**| [[manual:chapter5: |
- | | **Can be used in symbolics** | No | | + | |**Parallel list processing**| [[manual: |
- | | **Affected by flags** | No | | + | |**Affected by flags**| |
+ | |:::| [[manual: | ||
+ | </ | ||
+ | <callout color=" | ||
---- | ---- | ||
- | ===Description=== | + | The '' |
- | This command | + | |
+ | When the stack is in RPN mode '' | ||
+ | </ | ||
+ | |||
+ | <callout type=" | ||
---- | ---- | ||
- | ===Related commands=== | + | This command is only partially |
- | DROPN DROP2 | + | |
- | </ | + | In particular: |
- | <callout type=" | + | * In userRPL RPN stack mode is not supported. |
- | ===Compatibility=== | + | |
- | This command is fully compatible with userRPL. | + | |
</ | </ | ||
- | <callout type=" | ||
- | The following program: | ||
- | « 123 DROP » | + | <callout type=" |
- | + | ---- | |
- | Will have no effect on the stack. | + | < |
+ | 3: "This is a string" | ||
+ | 2: { ' | ||
+ | 1: 1_m | ||
+ | …………………………………………………………………………………… | ||
+ | DROP | ||
+ | </ | ||
+ | will result in | ||
+ | < | ||
+ | 2: "This is a string" | ||
+ | 1: { ' | ||
+ | …………………………………………………………………………………… | ||
+ | |||
+ | </ | ||
</ | </ | ||
+ | <callout color=" | ||
+ | ---- | ||
+ | {{page> | ||
+ | </ |