Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
manual:chapter6:stack:cmd_depth [2018/03/20 07:45] claudio created |
manual:chapter6:stack:cmd_depth [2019/11/28 14:36] jojo1973 Added flags -28 and -29 |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== DEPTH ==== | ==== DEPTH ==== | ||
---- | ---- | ||
- | <callout color=" | + | < |
- | ^ Input Stack ^ ^ Output Stack ^ | + | ---- |
- | | | → | **I** | | + | Return the number of items present on the stack |
+ | </ | ||
+ | |||
+ | <callout color=" | ||
+ | ---- | ||
+ | ^ | ||
+ | | | **→** | ||
+ | | //Level 1// | // | ||
{{page> | {{page> | ||
- | | **Can be used in symbolics** | No | | + | |**Type**| [[manual: |
- | | **Affected by flags** | No | | + | |**Parallel list processing**| [[manual: |
+ | |**Affected by flags**| | ||
+ | |:::| [[manual: | ||
+ | </ | ||
+ | <callout color=" | ||
---- | ---- | ||
- | ===Description=== | + | The '' |
- | Returns | + | |
+ | When the stack is in RPN mode '' | ||
+ | </ | ||
+ | |||
+ | <callout type=" | ||
---- | ---- | ||
+ | This command is only partially compatible with userRPL. | ||
+ | In particular: | ||
+ | * In userRPL RPN stack mode is not supported. | ||
</ | </ | ||
- | <callout type=" | ||
- | ===Compatibility=== | ||
- | This command is fully compatible with userRPL. | ||
- | </ | ||
- | <callout type=" | ||
- | The following program: | ||
- | « 123 DEPTH » | + | <callout type=" |
- | + | ---- | |
- | Will result in a stack containing | + | < |
+ | 3: "This is a string" | ||
+ | 2: { ' | ||
+ | 1: 1_m | ||
+ | …………………………………………………………………………………… | ||
+ | DEPTH | ||
+ | </ | ||
+ | will result in | ||
+ | < | ||
+ | 4: "This is a string" | ||
+ | 3: | ||
+ | 2: 1_m | ||
+ | 1: 3 | ||
+ | …………………………………………………………………………………… | ||
+ | |||
+ | </ | ||
</ | </ | ||
- | <callout color=" | + | |
- | ===Related | + | <callout color=" |
+ | ---- | ||
{{page> | {{page> | ||
</ | </ |