Tacit programming: Difference between revisions

Jump to navigation Jump to search
296 bytes added ,  14:20, 9 January 2020
Line 11: Line 11:


== Derived functions ==
== Derived functions ==
Functions derived from an operator and operand are tacit.
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 ← +/
       sum ⍳10
       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>


Navigation menu