Primitive: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(Created page with "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....")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
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]] (<source lang=apl inline>←</source>) and [[Branch]] (<source lang=apl inline>→</source>) can also be considered primitives, though they do not abide by APL's regular [[syntax]]. Similarly, special constants like [[Zilde]] (<source lang=apl inline>⍬</source>) and [[Dyalog APL]]'s Root [[namespace]] (<source lang=apl inline>#</source>) are sometimes called primitives.
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 ==
Line 5: Line 5:
* [[Primitive operator]]
* [[Primitive operator]]


{{APL built-ins}}
{{APL built-ins}}[[Category:APL syntax]]

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


APL built-ins [edit]
Primitives (Timeline) Functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare RootRound
Dyadic AddSubtractTimesDivideResiduePowerLogarithmMinimumMaximumBinomialComparison functionsBoolean functions (And, Or, Nand, Nor) ∙ GCDLCMCircularComplexRoot
Non-Scalar
Structural ShapeReshapeTallyDepthRavelEnlistTableCatenateReverseRotateTransposeRazeMixSplitEncloseNestCut (K)PairLinkPartitioned EnclosePartition
Selection FirstPickTakeDropUniqueIdentityStopSelectReplicateExpandSet functions (IntersectionUnionWithout) ∙ Bracket indexingIndexCartesian ProductSort
Selector Index generatorGradeIndex OfInterval IndexIndicesDealPrefix and suffix vectors
Computational MatchNot MatchMembershipFindNub SieveEncodeDecodeMatrix InverseMatrix DivideFormatExecuteMaterialiseRange
Operators Monadic EachCommuteConstantReplicateExpandReduceWindowed ReduceScanOuter ProductKeyI-BeamSpawnFunction axisIdentity (Null, Ident)
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Withe, Atop, Over) ∙ Inner ProductDeterminantPowerAtUnderRankDepthVariantStencilCutDirect definition (operator)Identity (Lev, Dex)
Quad names Index originComparison toleranceMigration levelAtomic vector