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_depth [2019/10/01 15:38] jojo1973 Moved description before stack diagram |
manual:chapter6:stack:cmd_depth [2021/09/19 13:28] (current) jojo1973 Redone |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== DEPTH ==== | ==== DEPTH ==== | ||
+ | <callout type=" | ||
---- | ---- | ||
- | <callout type=" | + | Return |
- | ---- | + | |
- | Returns | + | |
</ | </ | ||
- | <callout color=" | + | <callout color=" |
---- | ---- | ||
^ __Input Stack__ | ^ __Input Stack__ | ||
- | | | **→** | + | | |
- | | //Level 1// | | + | | //Level 1// | |
{{page> | {{page> | ||
- | | {{fa> | + | | **Keyword type** | [[manual: |
- | | {{fa> | + | | **Parallel |
- | | {{fa> | + | | **Affected by flags** |
+ | | ::: | [[manual: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
</ | </ | ||
- | < | + | < |
---- | ---- | ||
- | This command is fully compatible with userRPL. | + | The '' |
+ | |||
+ | When the stack is in RPN mode '' | ||
+ | </ | ||
+ | |||
+ | <callout type=" | ||
+ | ---- | ||
+ | '' | ||
+ | |||
+ | In particular: | ||
+ | |||
+ | * In **userRPL** RPN stack mode is not supported. | ||
</ | </ | ||
<callout type=" | <callout type=" | ||
---- | ---- | ||
- | The following program: | + | **__Input__** |
< | < | ||
- | « | + | 4: |
- | 123 | + | 3: 1_m |
- | DEPTH | + | 2: { ' |
- | » | + | 1: "This is a string" |
+ | ………………………………………………………………………………………………………… | ||
+ | DEPTH | ||
+ | </ | ||
+ | \\ | ||
+ | **__Output__** | ||
+ | < | ||
+ | 4: 1_m | ||
+ | 3: { ' | ||
+ | 2: "This is a string" | ||
+ | 1: 3 | ||
+ | ………………………………………………………………………………………………………… | ||
+ | |||
</ | </ | ||
- | will result in a stack containing '' | ||
</ | </ | ||
- | <callout color=" | + | <callout color=" |
+ | ---- | ||
{{page> | {{page> | ||
</ | </ | ||
+ |