Function/Operator/Hyperator Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:
     </tr>
     </tr>
     <tr>
     <tr>
       <td><apll>A←<i>op1<i></apll></td>
       <td><apll>A←<i>op1</i></apll></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>
Line 16: Line 16:
     </tr>
     </tr>
     <tr>
     <tr>
       <td><apll>A←<i>op2<i></apll></td>
       <td><apll>A←<i>op2</i></apll></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>

Revision as of 04:02, 12 April 2008

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 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.