Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
manual:chapter6:stack:cmd_stkdrop [2019/10/09 09:43] claudio |
manual:chapter6:stack:cmd_stkdrop [2019/10/22 15:23] jojo1973 Fixed internal link |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== STKDROP ==== | ==== STKDROP ==== | ||
---- | ---- | ||
- | <callout type=" | + | <callout type=" |
---- | ---- | ||
- | Drop a stack snapshot from the top of the "stack of stacks" | + | Drop a snapshot from the top of the Undo stack |
</ | </ | ||
- | <callout color=" | + | <callout color=" |
---- | ---- | ||
^ __Input Stack__ | ^ __Input Stack__ | ||
- | | | **→** | + | | | **→** |
- | | //Level 1// | | + | | //Level 1// | |
{{page> | {{page> | ||
- | | {{fa> | + | |**Type**| [[manual: |
- | | {{fa> | + | |**Parallel |
- | | {{fa> | + | |**Affected by flags**| |
</ | </ | ||
- | < | + | < |
---- | ---- | ||
- | This command is new in newRPL, does not exist in userRPL. | + | The '' |
+ | |||
+ | The command has little utility in interactive mode, because before '' | ||
+ | </ | ||
+ | |||
+ | <callout type=" | ||
+ | ---- | ||
+ | This command is new in newRPL | ||
</ | </ | ||
<callout type=" | <callout type=" | ||
---- | ---- | ||
- | The following program: | + | The following program |
< | < | ||
- | « 123 | + | « " |
+ | STKPUSH | ||
+ | CLEAR | ||
+ | | ||
456 | 456 | ||
789 | 789 | ||
Line 35: | Line 45: | ||
999 | 999 | ||
STKDROP | STKDROP | ||
+ | STKPOP | ||
» | » | ||
</ | </ | ||
- | A snapshot containing numbers 123, 456, 789 will be pushed onto the "stack of stacks", | + | creates |
+ | < | ||
+ | 1: 999 | ||
+ | …………………………………………………………………………………… | ||
+ | </ | ||
+ | The effect | ||
+ | < | ||
+ | 1: "ABC" | ||
+ | …………………………………………………………………………………… | ||
+ | </ | ||
</ | </ | ||
- | <callout color=" | + | <callout color=" |
+ | ---- | ||
{{page> | {{page> | ||
</ | </ |