Subversion Repositories wimsdev

Rev

Rev 11292 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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