Primitive: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<source" to "<syntaxhighlight") Tags: Mobile edit Mobile web edit |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 1: | Line 1: | ||
A '''primitive''' is a built-in [[function]] or [[operator]] which is a core part of the language. It is represented by a [[glyph]], which it may share with another primitive. Special syntax like [[Assignment]] (<syntaxhighlight lang=apl inline>←</ | A '''primitive''' is a built-in [[function]] or [[operator]] which is a core part of the language. It is represented by a [[glyph]], which it may share with another primitive. Special syntax like [[Assignment]] (<syntaxhighlight lang=apl inline>←</syntaxhighlight>) and [[Branch]] (<syntaxhighlight lang=apl inline>→</syntaxhighlight>) can also be considered primitives, though they do not abide by APL's regular [[syntax]]. Similarly, special constants like [[Zilde]] (<syntaxhighlight lang=apl inline>⍬</syntaxhighlight>) and [[Dyalog APL]]'s Root [[namespace]] (<syntaxhighlight lang=apl inline>#</syntaxhighlight>) are sometimes called primitives. | ||
== See also == | == See also == |
Latest revision as of 21:51, 10 September 2022
A primitive is a built-in function or operator which is a core part of the language. It is represented by a glyph, which it may share with another primitive. Special syntax like Assignment (←
) and Branch (→
) can also be considered primitives, though they do not abide by APL's regular syntax. Similarly, special constants like Zilde (⍬
) and Dyalog APL's Root namespace (#
) are sometimes called primitives.
See also