Dfn: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(Created page with "A '''dfn''' (pronounced "dee fun") is an alternative way to define a function and operator, invented by John Scholes. A dfn operator can also be called a '''dop'''...")
Tags: Mobile edit Mobile web edit
 
mNo edit summary
Tags: Mobile edit Mobile web edit
Line 4: Line 4:


Wikipedia has a full treatment of dfns.
Wikipedia has a full treatment of dfns.
== Documentation ==
== Documentation ==
* [http://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/DynamicFunctions/Dynamic%20Functions%20and%20Operators.htm Dyalog]
* [http://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/DynamicFunctions/Dynamic%20Functions%20and%20Operators.htm Dyalog]
== External links ==
== External links ==
* [[Wikipedia: Direct function]]
* [[Wikipedia: Direct function]]

Revision as of 13:32, 19 December 2019

A dfn (pronounced "dee fun") is an alternative way to define a function and operator, invented by John Scholes. A dfn operator can also be called a dop (pronounced "dee op").

As of 2020, dfns are fully implemented in Dyalog APL, NARS2000, ngn/apl, dzaima/APL, and partially in GNU APL.

Wikipedia has a full treatment of dfns.

Documentation

External links


APL syntax [edit]
General Comparison with traditional mathematicsPrecedenceTacit programming (Train, Hook, Split composition)
Array Numeric literalStringStrand notationObject literalArray notation (design considerations)
Function ArgumentFunction valenceDerived functionDerived operatorNiladic functionMonadic functionDyadic functionAmbivalent functionDefined function (traditional)DfnFunction train
Operator OperandOperator valenceTradopDopDerived operator
Assignment MultipleIndexedSelectiveModified
Other Function axisBracket indexingBranchStatement separatorQuad nameSystem commandUser commandKeywordDot notationFunction-operator overloadingControl structureComment