Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
manual:chapter6:stack:cmd_depth [2018/03/20 07:45] claudio created |
manual:chapter6:stack:cmd_depth [2021/09/19 13:28] (current) jojo1973 Redone |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== DEPTH ==== | ==== DEPTH ==== | ||
| + | <callout type=" | ||
| ---- | ---- | ||
| - | <callout color=" | + | Return the number of items present on the stack |
| - | ^ Input Stack ^ ^ Output Stack ^ | + | </ |
| - | | | → | **I** | | + | |
| + | <callout color=" | ||
| + | ---- | ||
| + | ^ | ||
| + | | | ||
| + | | //Level 1// | // | ||
| {{page> | {{page> | ||
| - | | **Can be used in symbolics** | No | | + | | **Keyword type** | [[manual: |
| - | | **Affected by flags** | No | | + | | **Parallel list processing capabilities** |
| + | | **Affected by flags** | ||
| + | | ::: | [[manual: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | <callout color=" | ||
| ---- | ---- | ||
| - | ===Description=== | + | The '' |
| - | Returns | + | |
| + | When the stack is in RPN mode '' | ||
| + | </ | ||
| + | |||
| + | <callout type=" | ||
| ---- | ---- | ||
| + | '' | ||
| + | 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 | + | **__Input__** |
| + | < | ||
| + | 4: | ||
| + | 3: 1_m | ||
| + | 2: | ||
| + | 1: "This is a string" | ||
| + | ………………………………………………………………………………………………………… | ||
| + | DEPTH | ||
| + | </ | ||
| + | \\ | ||
| + | **__Output__** | ||
| + | < | ||
| + | 4: 1_m | ||
| + | 3: | ||
| + | 2: "This is a string" | ||
| + | 1: 3 | ||
| + | ………………………………………………………………………………………………………… | ||
| + | |||
| + | </ | ||
| </ | </ | ||
| - | <callout color=" | + | |
| - | ===Related | + | <callout color=" |
| + | ---- | ||
| {{page> | {{page> | ||
| </ | </ | ||
| + | |||