Class | Data Declaration command |
Name | <cmd> { ... } |
Arguments | ...{ (<val1> <val2> ...<valN>)|($[mxqa]) } ... |
Repeat the associated command, placing each value of the iterator list into the position the list currently occupies. There may be multiple iterators, and iterator lists may be nested. This macro extension allows much of the functionality of proper computer languages:
Iteration over a range of numerical values of a function | sml {0.1 0.3 0.5} 1 0 0 |
Iteration over a range of loci of a function | tab a1 {m1 m2} |
Iteration over a range of functions | {tdt ass} a1 |
Combinatorial generation of strings eg locus names | set loc a{1 2 3} aff |
Compound statements | if (male) then m{1 2}=x |
Example:
>> {1 2} + 1 => 2. => 3. >> set loc a{1 2 3} aff; ls a1* a2* a3* 3 active traits; 0 active markers.
<< (eval) | Up to index | >> (set datadirectory) |