==== CLEAR ====
----
Delete all objects on the stack
----
^ __Input Stack__ ^^^ ^ __Output Stack__ ^
| **On** | **...** | **O1** | **→** | **** |
| //Level n// | //...// | //Level 1// | //→// | //Level 1// |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
| **Keyword type** | [[manual:chapter5:basics#commands|Command]] ||
| **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]] | //Commands that cannot parallel process// |
| **Affected by flags** | [[manual:appendix:flags#flag-28|-28]] | //Enable RPN stack mode// |
| ::: | [[manual:appendix:flags#flag-29|-29]] | //RPN stack depth// |
----
The ''CLEAR'' command deletes all the objects on the stack. The contents can be recovered pressing immediately after the **LF** key.
When in RPN mode ''CLEAR'' fills all the levels with the value stored in the top-most level of the stack.
----
''CLEAR'' is not fully equivalent to its **userRPL** counterpart.
In particular:
* **userRPL** has no RPN stack mode.
----
**__Input__**
4: 1_m
3: { 'X' 'Y' 'Z' }
2: "This is a string"
1: 123
…………………………………………………………………………………………………………
CLEAR
\\
**__Output__**
4:
3:
2:
1:
…………………………………………………………………………………………………………
----
{{page>manual:chapter6:stack&nofooter&noeditbtn&inline}}