Subversion Repositories wimsdev

Rev

Rev 11210 | Rev 14279 | 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+
11210 bpr 2
tit:makelist
3
type:$type_both
11292 bpr 4
syntax:!makelist ``templ'' for ``v''=``v1'' to ``v2'' [step ``st''], or <br/>
5
$ !makelist ``templ'' for ``v'' in ``v1,v2,v3,...''
6
mean:Outputs a list consisting of ``templ'' with variable ``v'' successively substituted \
7
  by values ``v1'', ..., ``v2''. <p>\
11210 bpr 8
  In the second syntax, the substitutions are done with respect to each item in\
11292 bpr 9
  the list ``v1,v2,...''. </p><p>\
10
  The variable ``v'' should appear in ``templ'' as a math variable \
11210 bpr 11
  (that is, with no preceeding character). </p><p>For example, the command</p>\
12
<pre>!makelist [x;x+1;xx] for x in a,x and y,1,(2,3)</pre>\
13
  gives the result\
14
  <pre>\
15
  !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)\
32 reyssat 16
  </pre>