Function/Operator/Hyperator Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:
     <table border="0" cellpadding="5" cellspacing="0" summary="">
     <table border="0" cellpadding="5" cellspacing="0" summary="">
     <tr>
     <tr>
       <td><apl size="large"> A←<i>fn</i></apl></td>
       <td><apl size="large">A←<i>fn</i></apl></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>

Revision as of 11:08, 9 April 2008

A←fn assigns the function fn 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, fn, op1, and op2 are an arbitrary function, monadic or dyadic operator.



For example, the function F←⍴∘⍴¨ when applied to an array, returns the rank of each item.