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:41] jojo1973 Removed duplicate description |
manual:chapter6:stack:cmd_clear [2019/11/28 14:33] jojo1973 Added flags -28 and -29 |
==== CLEAR ==== | ==== CLEAR ==== |
---- | ---- |
<callout type="primary" color="" icon="fa fa-comment" title="Description"> | <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> |
---- | ---- |
Deletes any object on the stack, leaving it empty. | Delete any object on the stack, leaving it empty |
</callout> | </callout> |
| |
<callout color="crimson" icon="fa fa-indent" title="Stack Diagram"> | <callout color="green" icon="fa fa-indent" title="Stack Diagram"> |
---- | ---- |
^ __Input Stack__ ^^^ ^ __Output Stack__ ^^^ | ^ __Input Stack__ ^^^ ^ __Output Stack__ ^^^ |
| **O<sub>n</sub>** | ... | **O<sub>1</sub>** | **→** | | | | | | **O<sub>n</sub>** | **...** | **O<sub>1</sub>** | **→** | | |
| //Level n// | ... | //Level 1// | **→** | //Level n// | ... | //Level 1// | | | //Level n// | //...// | //Level 1// | //→// | //Level 1// | |
| |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} |
| |
| {{fa>times?lg&color=red}} **Support for inclusion in symbolic expressions** | | |**Type**| [[manual:chapter5:basics#commands|Command]] || |
| {{fa>times?lg&color=red}} **Support for parallel list processing** | | |**Parallel list processing**| [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]] || |
| {{fa>times?lg&color=red}} **Affected by flags** | | |**Affected by flags**| [[manual:appendix:flags#flag-28|-28]] | RPL / RPN stack mode | |
| |:::| [[manual:appendix:flags#flag-29|-29]] | RPN stack depth | |
</callout> | </callout> |
| |
<callout type="success" icon="true" title="Compatibility"> | <callout color="orangered" icon="fa fa-comment" title="Description"> |
---- | ---- |
This command is fully compatible with userRPL. | The ''CLEAR'' command deletes all the objects from the stack. The contents can be recovered pressing immediately after the **LF** key. |
| |
| When the stack is in RPN mode ''CLEAR'' fills all the levels with the value of the stack level 4 or level 8, depending on the selected stack depth. |
| </callout> |
| |
| <callout type="warning" icon="true" title="Compatibility"> |
| ---- |
| This command is only partially compatible with userRPL. |
| |
| In particular: |
| * In userRPL RPN stack mode is not supported. |
</callout> | </callout> |
| |
<callout type="info" icon="true" title="Usage"> | <callout type="info" icon="true" title="Usage"> |
---- | ---- |
The following program: | |
<code> | <code> |
« | 4: 123 |
123 | 3: "This is a string" |
"This is a string" | 2: { 'X' 'Y' 'Z' } |
{ X Y Z } | 1: 1_m |
1_m | …………………………………………………………………………………… |
CLEAR | CLEAR |
» | |
</code> | </code> |
will result in an empty stack. | will result in an empty stack.</callout> |
</callout> | |
| |
<callout color="darkslategray" icon="fa fa-hand-o-right" title="Related Commands"> | <callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> |
| ---- |
{{page>manual:chapter6:stack&nofooter&noeditbtn&inline}} | {{page>manual:chapter6:stack&nofooter&noeditbtn&inline}} |
</callout> | </callout> |