Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
manual:chapter6:stack:cmd_clear [2019/10/01 15:36] jojo1973 Moved description before stack diagram |
manual:chapter6:stack:cmd_clear [2019/11/28 14:33] jojo1973 Added flags -28 and -29 |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== CLEAR ==== | ==== CLEAR ==== | ||
---- | ---- | ||
- | <callout type=" | + | <callout type=" |
---- | ---- | ||
- | Deletes | + | Delete |
</ | </ | ||
- | <callout color=" | + | <callout color=" |
---- | ---- | ||
^ __Input Stack__ | ^ __Input Stack__ | ||
- | | **O< | + | | **O< |
- | | //Level n// | ... | //Level 1// | + | | //Level n// | |
{{page> | {{page> | ||
- | | {{fa> | + | |**Type**| [[manual: |
- | | {{fa> | + | |**Parallel |
- | | {{fa> | + | |**Affected by flags**| [[manual: |
+ | |:::| [[manual: | ||
</ | </ | ||
- | < | + | <callout color=" |
---- | ---- | ||
- | Deletes any object on the stack, | + | The '' |
+ | |||
+ | When the stack is in RPN mode '' | ||
</ | </ | ||
- | <callout type="success" icon=" | + | <callout type="warning" icon=" |
---- | ---- | ||
- | This command is fully compatible with userRPL. | + | This command is only partially |
+ | |||
+ | In particular: | ||
+ | * In userRPL RPN stack mode is not supported. | ||
</ | </ | ||
<callout type=" | <callout type=" | ||
---- | ---- | ||
- | The following program: | ||
< | < | ||
- | « | + | 4: 123 |
- | | + | 3: |
- | "This is a string" | + | 2: { 'X' 'Y' 'Z' |
- | { X Y Z } | + | 1: 1_m |
- | 1_m | + | …………………………………………………………………………………… |
- | CLEAR | + | CLEAR |
- | » | + | |
</ | </ | ||
- | will result in an empty stack. | + | will result in an empty stack.</ |
- | </ | + | |
- | <callout color=" | + | <callout color=" |
+ | ---- | ||
{{page> | {{page> | ||
</ | </ |