Function/Operator/Hyperator Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
(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...)
 
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{is}<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 16:03, 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.