Subversion Repositories wimsdev

Rev

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

Rev 11292 Rev 14279
Line 1... Line 1...
1
!! +var+ +exec+ +string+
1
!! +var+ +exec+ +string+
-
 
2
!goto end
2
tit:makelist
3
tit:makelist
3
type:$type_both
4
type:$type_both
-
 
5
 
4
syntax:!makelist ``templ'' for ``v''=``v1'' to ``v2'' [step ``st''], or <br/>
6
syntax:!makelist ``templ'' for ``v''=``v1'' to ``v2'' [step ``st''], or \
5
$ !makelist ``templ'' for ``v'' in ``v1,v2,v3,...''
7
!makelist ``templ'' for ``v'' in ``v1,v2,v3,...''
-
 
8
 
6
mean:Outputs a list consisting of ``templ'' with variable ``v'' successively substituted \
9
mean:Outputs a list consisting of ``templ'' with variable ``v'' successively substituted \
7
  by values ``v1'', ..., ``v2''. <p>\
10
  by values ``v1'', ..., ``v2''.<br/>\
8
  In the second syntax, the substitutions are done with respect to each item in\
11
  In the second syntax, the substitutions are done with respect to each item in\
9
  the list ``v1,v2,...''. </p><p>\
12
  the list ``v1,v2,...''.<br/>\
10
  The variable ``v'' should appear in ``templ'' as a math variable \
13
  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>\
14
  (that is, with no preceeding character).
-
 
15
 
-
 
16
sample:see below
-
 
17
:end
-
 
18
<tr>
12
<pre>!makelist [x;x+1;xx] for x in a,x and y,1,(2,3)</pre>\
19
  <td><code>!makelist [x;x+1;xx] for x in a,x and y,1,(2,3)</code></td>
13
  gives the result\
-
 
14
  <pre>\
20
  <td><pre>
15
  !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)\
21
    !makelist [x;x+1;xx] for x in a,x and y,1,(2,3)
16
  </pre>
22
  </pre></td>
-
 
23
</tr>
-
 
24