Rev 5921 | Rev 11292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5921 | Rev 11210 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! +var+ +exec+ +string+ |
1 | !! +var+ +exec+ +string+ |
2 |
|
2 | tit:makelist |
3 |
|
3 | type:$type_both |
4 |
|
4 | syntax:!makelist `templ' for `v'=`v1' to `v2' [step `st'], or <br/> |
5 | $ |
5 | $ !makelist `templ' for `v' in `v1,v2,v3,...' |
6 | $emph v1,v2,v3,...$emphend</span> |
- | |
7 |
|
6 | mean:Outputs a list consisting of `templ' with variable `v' successively substituted \ |
8 | variable $emph v $emphend successively substituted by values $emph v1$emphend, |
- | |
9 |
|
7 | by values `v1', ..., `v2'. <p>\ |
10 | In the second syntax, the substitutions are done with respect to each item |
8 | In the second syntax, the substitutions are done with respect to each item in\ |
11 | the list |
9 | the list `v1,v2,...'. </p><p>\ |
12 | The variable |
10 | The variable `v' should appear in `templ' as a math variable \ |
13 |
|
11 | (that is, with no preceeding character). </p><p>For example, the command</p>\ |
14 | For example, the command</p> |
- | |
15 |
|
12 | <pre>!makelist [x;x+1;xx] for x in a,x and y,1,(2,3)</pre>\ |
16 | gives the |
13 | gives the result\ |
17 |
|
14 | <pre>\ |
18 |
|
15 | !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)\ |
19 | </pre> |
16 | </pre> |