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:lists:cmd_seq [2021/09/23 13:26] jojo1973 |
manual:chapter6:lists:cmd_seq [2021/10/02 06:12] jojo1973 |
<callout color="orangered" icon="fa fa-comment" title="Description"> | <callout color="orangered" icon="fa fa-comment" title="Description"> |
---- | ---- |
The ''SEQ'' command returns a list of results generated by repeatedly executing a program, a symbolic object or an identifier using **N<sub>index</sub>** over the range **Num<sub>start</sub>** to **Num<sub>end</sub>**, in increments of **Num<sub>incr</sub>**. The action of ''SEQ'' for arbitrary inputs can be predicted exactly from this equivalent program: | The ''SEQ'' command returns a list of results generated by repeatedly ''[[manual:chapter6:operators:cmd_ovr_eval|EVAL]]''uating a program, a symbolic object or an identifier using **N<sub>index</sub>** over the range **Num<sub>start</sub>** to **Num<sub>end</sub>**, in increments of **Num<sub>incr</sub>**. |
| \\ |
| \\ |
| The action of ''SEQ'' for arbitrary inputs can be predicted exactly from this equivalent program: |
<code> | <code> |
Numstart Numend FOR 'Nindex' | Numstart Numend FOR 'Nindex' |
</callout> | </callout> |
| |
<callout type="success" icon="true" title="Compatibility"> | <callout type="warning" icon="true" title="Compatibility"> |
---- | ---- |
''SEQ'' is fully equivalent to its **userRPL** counterpart. | ''SEQ'' is not fully equivalent to its **userRPL** counterpart. |
| |
| In particular: |
| |
| * The program launched by ''SEQ'' operates in a protected stack environment: no elements present on the stack before ''SEQ'' is launched can be reached or altered. |
</callout> | </callout> |
| |