Rev 5921 | Rev 11212 | 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 |
|
2 | tit:recursion |
3 |
|
3 | type:$type_both |
4 |
|
4 | syntax:!recursion `fn' for `v'=`v1' to `v2' [step `st'], or <br/>\ |
5 | $ |
5 | $ !recursion `fn' for `v' in `v1,v2,v3,...' |
6 | $emph v1,v2,v3,...$emphend</span> |
- | |
7 |
|
6 | mean:Computes the outcome of a recursion using the function `fn' in which the\ |
8 | $emph fn$emphend in which the |
- | |
9 | variable |
7 | variable `v' is replaced successively by values `v1', ..., `v2'. <p>\ |
10 | ..., $emph v2$emphend. <p> |
- | |
11 | In the second syntax, the values are given with respect to each item |
8 | In the second syntax, the values are given with respect to each item in\ |
12 | the list |
9 | the list `v1,v2,...'. <p>\ |
13 | The |
10 | The function `fn' should use the variable `last' to indicate the value of the previous \ |
14 | to indicate the value of the previous recursion step. |
- | |
15 | And the starting value can be put into the WIMS |
11 | recursion step. And the starting value can be put into the WIMS variable\ |
16 |
|
12 | <span class="tt">$$recursion_start</span>. </p> |
17 | </p> |
- |