Subversion Repositories wimsdev

Rev

Rev 11210 | Rev 14279 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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