# Mixed function

Revision as of 22:16, 10 September 2022 by Adám Brudzewsky (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

A **mixed function** is one of a class of primitive functions that consider their entire arguments rather than treating each element at a time. The exact parts of an argument that is considered as a unit, varies per function, rather than adhering to a general rule. Hence the name "mixed" as in a "mixed bag" of functions. This is opposed to scalar functions which are defined in terms of operations on simple scalars.

For example, while Equal (`=`

) is a scalar function in that it compares (corresponding) elements, Match (`≡`

) gives a single result which indicates if the arguments, as wholes, are identical.

## External links

- Mixed Functions in Dyalog APL documentation

APL features [edit]
| |
---|---|

Built-ins | Primitives (functions, operators) ∙ Quad name |

Array model | Shape ∙ Rank ∙ Depth ∙ Bound ∙ Index (Indexing) ∙ Axis ∙ Ravel ∙ Ravel order ∙ Element ∙ Scalar ∙ Vector ∙ Matrix ∙ Simple scalar ∙ Simple array ∙ Nested array ∙ Cell ∙ Major cell ∙ Subarray ∙ Empty array ∙ Prototype |

Data types | Number (Boolean, Complex number) ∙ Character (String) ∙ Box ∙ Namespace ∙ Function array |

Concepts and paradigms | Conformability (Scalar extension, Leading axis agreement) ∙ Scalar function (Pervasion) ∙ Identity element ∙ Complex floor ∙ Total array ordering ∙ Tacit programming (Function composition, Close composition) ∙ Glyph |

Errors | LIMIT ERROR ∙ RANK ERROR ∙ SYNTAX ERROR ∙ DOMAIN ERROR ∙ LENGTH ERROR ∙ INDEX ERROR ∙ VALUE ERROR ∙ EVOLUTION ERROR |