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