This shows you the differences between two versions of the page.
Next revision
|
Previous revision
Next revision
Both sides next revision
|
manual:chapter6:lists:cmd_seq [2021/09/23 13:09] jojo1973 created |
manual:chapter6:lists:cmd_seq [2021/09/23 14:45] jojo1973 |
| |
| **Keyword type** | [[manual:chapter5:basics#commands|Command]] || | | **Keyword type** | [[manual:chapter5:basics#commands|Command]] || |
| **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] | //Commands that must use //''[[manual:chapter6:lists:cmd_cmddolist|DOLIST]]''// to parallel process// | | | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-7multiple-argument-one-result-commands|Group 7]] | //Multiple argument, one result commands// | |
| **Affected by flags** | //None// || | | **Affected by flags** | //None// || |
| |
<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' |
n → LIST | n → LIST |
</code> | </code> |
where ''n'' is the number of new objects left on the stack by the ''[[manual:chapter6:docol2:cmd_for|FOR]]'' … ''[[manual:chapter6:docol2:cmd_step|STEP]]'' loop. Notice that index becomes a local variable regardless of its original type. | where ''n'' is the number of new objects left on the stack by the ''[[manual:chapter6:docol2:cmd_for|FOR]]'' … ''[[manual:chapter6:docol2:cmd_step|STEP]]'' loop. Notice that **N<sub>index</sub>** becomes a local variable regardless of its original type. |
</callout> | </callout> |
| |