Function/Operator/Hyperator Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 30: Line 30:
</table>
</table>
<br />
<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 <apll>F←⍴∘⍴¨</apll> when applied to an array, returns the rank of each item.

Revision as of 15:35, 10 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 RankEach←⍴∘⍴¨ when applied to an array, returns the number of dimensions of each item.