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_clear [2019/10/01 15:41] jojo1973 Removed duplicate description |
manual:chapter6:stack:cmd_clear [2021/09/14 15:25] (current) jojo1973 Redone |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== CLEAR ==== | ==== CLEAR ==== | ||
+ | <callout type=" | ||
---- | ---- | ||
- | <callout type=" | + | Delete all objects |
- | ---- | + | |
- | Deletes any object | + | |
</ | </ | ||
- | <callout color=" | + | <callout color=" |
---- | ---- | ||
- | ^ __Input Stack__ | + | ^ __Input Stack__ |
- | | **O< | + | | **O< |
- | | //Level n// | ... | //Level 1// | + | | //Level n// | |
{{page> | {{page> | ||
- | | {{fa> | + | | **Keyword type** | [[manual: |
- | | {{fa> | + | | **Parallel |
- | | {{fa> | + | | **Affected by flags** |
+ | | ::: | [[manual: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
</ | </ | ||
- | < | + | < |
---- | ---- | ||
- | This command is fully compatible with userRPL. | + | The '' |
+ | |||
+ | When in RPN mode '' | ||
+ | </ | ||
+ | |||
+ | <callout type=" | ||
+ | ---- | ||
+ | '' | ||
+ | |||
+ | In particular: | ||
+ | |||
+ | * **userRPL** has no RPN stack mode. | ||
</ | </ | ||
<callout type=" | <callout type=" | ||
---- | ---- | ||
- | The following program: | + | **__Input__** |
< | < | ||
- | « | + | 4: 1_m |
- | 123 | + | 3: { ' |
- | "This is a string" | + | 2: |
- | { X Y Z } | + | 1: 123 |
- | 1_m | + | ………………………………………………………………………………………………………… |
- | CLEAR | + | CLEAR |
- | » | + | </ |
+ | \\ | ||
+ | **__Output__** | ||
+ | < | ||
+ | 4: | ||
+ | 3: | ||
+ | 2: | ||
+ | 1: | ||
+ | ………………………………………………………………………………………………………… | ||
+ | |||
</ | </ | ||
- | will result in an empty stack. | ||
</ | </ | ||
- | <callout color=" | + | <callout color=" |
+ | ---- | ||
{{page> | {{page> | ||
</ | </ | ||
+ |