4,494
edits
Line 11: | Line 11: | ||
== Derived functions == | == Derived functions == | ||
Functions derived from an operator and | Functions derived from a monadic operator and an operand, or from a dyadic operator and two operands are tacit functions: | ||
<source lang=apl> | <source lang=apl> | ||
Sum ← +/ | |||
Sum ⍳10 | |||
55 | 55 | ||
Dot ← +.× | |||
3 1 4 dot 2 7 1 | |||
17 | |||
</source> | |||
== Derived operators == | |||
A dyadic operator with its right operand forms a tacit monadic operator: | |||
<source lang=apl> | |||
1(+⍣2)10 | |||
12 | |||
Twice ← ⍣2 | |||
1 +Twice 10 | |||
12 | |||
</source> | </source> | ||