Function/Operator/Hyperator Assignment: Difference between revisions
From NARS2000
Jump to navigationJump to search
Sudleyplace (talk | contribs) (New page: <table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" summary=""> <tr> <td><apl size="large...) |
Sudleyplace (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
<table border="0" cellpadding="5" cellspacing="0" summary=""> | <table border="0" cellpadding="5" cellspacing="0" summary=""> | ||
<tr> | <tr> | ||
<td>< | <td><apll>A←<i>f</i></apll></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
<td>assigns the function <i> | <td>assigns the function <apll><i>f</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>< | <td><apll>A←<i>op1</i></apll></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
<td>assigns the monadic operator <i>op1</i> to < | <td>assigns the monadic operator <apll><i>op1</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>< | <td><apll>A←<i>op2</i></apll></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
<td>assigns the dyadic operator <i>op2</i> to < | <td>assigns the dyadic operator <apll><i>op2</i></apll> to <apll>A</apll>.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 25: | Line 25: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>< | <td><apll>A</apll> is an assignable name, <apll><i>f</i></apll>, <apll><i>op1</i></apll>, and <apll><i>op2</i></apll> are an arbitrary function, monadic or dyadic operator, respectively. | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
<br /> | <br /> | ||
< | <p>For example, the function <apll>RankEach←⍴∘⍴¨</apll> when applied to an array, returns the number of dimensions of each item.</p> | ||
For example, the function < |
Revision as of 04:02, 12 April 2008
|
||||||||||||
A is an assignable name, f, op1, and op2 are an arbitrary function, monadic or dyadic operator, respectively. |
For example, the function RankEach←⍴∘⍴¨ when applied to an array, returns the number of dimensions of each item.