Function/Operator/Hyperator Assignment: Difference between revisions
From NARS2000
Jump to navigationJump to search
m (WikiSysop moved page Function/Operator Assignment to Function/Operator/Hyperator Assignment) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
<td>assigns the function <apll><i>f</i></apll> to <apll>A</apll>.</td> | <td>assigns the function <apll><i>f</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>A←<i>op1</i></apll></td> | <td><apll>A←<i>op1</i></apll></td> | ||
Line 15: | Line 16: | ||
<td>assigns the monadic operator <apll><i>op1</i></apll> to <apll>A</apll>.</td> | <td>assigns the monadic operator <apll><i>op1</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>A←<i>op2</i></apll></td> | <td><apll>A←<i>op2</i></apll></td> | ||
Line 21: | Line 23: | ||
<td>assigns the dyadic operator <apll><i>op2</i></apll> to <apll>A</apll>.</td> | <td>assigns the dyadic operator <apll><i>op2</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | |||
<td><apll>A←<i>h1o1</i></apll></td> | |||
<td></td> | |||
<td></td> | |||
<td>assigns the monadic hyperator, monadic operator <apll><i>h1o1</i></apll> to <apll>A</apll>.</td> | |||
</tr> | |||
<tr> | |||
<td><apll>A←<i>h1o2</i></apll></td> | |||
<td></td> | |||
<td></td> | |||
<td>assigns the monadic hyperator, dyadic operator <apll><i>h1o2</i></apll> to <apll>A</apll>.</td> | |||
</tr> | |||
<tr> | |||
<td><apll>A←<i>h2o1</i></apll></td> | |||
<td></td> | |||
<td></td> | |||
<td>assigns the dyadic hyperator, monadic operator <apll><i>h2o1</i></apll> to <apll>A</apll>.</td> | |||
</tr> | |||
<tr> | |||
<td><apll>A←<i>h2o2</i></apll></td> | |||
<td></td> | |||
<td></td> | |||
<td>assigns the dyadic hyperator, dyadic operator <apll><i>h2o2</i></apll> to <apll>A</apll>.</td> | |||
</tr> | |||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>A</apll> is an assignable name, <apll><i>f</i></apll>, <apll><i>op1</i></apll>, and <apll><i> | <td><apll>A</apll> is an assignable name, <apll><i>f</i></apll>, <apll><i>op1</i></apll>, <apll><i>op2</i></apll>, <apll><i>h1o1</i></apll>, <apll><i>h1o2</i></apll>, <apll><i>h2o1</i></apll>, and <apll><i>h2o2</i></apll> are an arbitrary function, monadic or dyadic operator, or one of the four forms of a hyperator, respectively. | ||
</td> | </td> | ||
</tr> | </tr> |
Latest revision as of 10:08, 19 March 2019
|
||||||||||||||||||||||||||||
A is an assignable name, f, op1, op2, h1o1, h1o2, h2o1, and h2o2 are an arbitrary function, monadic or dyadic operator, or one of the four forms of a hyperator, respectively. |
For example, the function RankEach←⍴∘⍴¨ when applied to an array, returns the number of dimensions of each item.