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/02 15:09] jojo1973 Indentation of the example code |
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__** |
| < | < | ||
| - | « 123 | + | 4: |
| - | DEPTH | + | 3: 1_m |
| - | » | + | 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> | ||
| </ | </ | ||
| + | |||