Subversion Repositories wimsdev

Rev

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
$lst_tit makelist$lst_titend$type_both
2
tit:makelist
3
  $(lst_syntax)makelist $emph templ$emphend for $emph v$emphend=$emph v1$emphend
3
type:$type_both
4
  to $emph v2$emphend [step $emph st $emphend], or <br/>
4
syntax:!makelist `templ' for `v'=`v1' to `v2' [step `st'], or <br/>
5
$ !makelist $emph templ$emphend for $emph v$emphend in
5
$ !makelist `templ' for `v' in `v1,v2,v3,...'
6
  $emph v1,v2,v3,...$emphend</span>
-
 
7
  $lst_mean Outputs a list consisting of $emph templ$emphend with
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
  ..., $emph v2$emphend. <p>
7
  by values `v1', ..., `v2'. <p>\
10
  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\
11
  the list $emph v1,v2,...$emphend. </p><p>
9
  the list `v1,v2,...'. </p><p>\
12
  The variable $emph v $emphend should appear in $emph templ $emphend
10
  The variable `v' should appear in `templ' as a math variable \
13
  as a math variable (that is, with no preceeding character). </p><p>
11
  (that is, with no preceeding character). </p><p>For example, the command</p>\
14
  For example, the command</p>
-
 
15
<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>\
16
  gives the result
13
  gives the result\
17
  <pre>
14
  <pre>\
18
  !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)\
19
  </pre>
16
  </pre>