Function/Operator/Hyperator Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 56: Line 56:
</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>op2</i></apll> are an arbitrary function, monadic or dyadic operator, respectively.
   <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←f assigns the function f to A.
A←op1 assigns the monadic operator op1 to A.
A←op2 assigns the dyadic operator op2 to A.
A←h1o1 assigns the monadic hyperator, monadic operator h1o1 to A.
A←h1o2 assigns the monadic hyperator, dyadic operator h1o2 to A.
A←h2o1 assigns the dyadic hyperator, monadic operator h2o1 to A.
A←h2o2 assigns the dyadic hyperator, dyadic operator h2o2 to A.
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.