Timeline of APL primitives: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
m (Punctuation and naming consistency)
m (Link close composition)
Line 27: Line 27:
                           | [[Partitioned Enclose]] (<syntaxhighlight lang=apl inline>⊂</syntaxhighlight>), [[First]] (<syntaxhighlight lang=apl inline>⊃</syntaxhighlight>), [[Type]] (<syntaxhighlight lang=apl inline>⊤</syntaxhighlight>), [[Split]] (<syntaxhighlight lang=apl inline>↓</syntaxhighlight>), [[Mix]] (<syntaxhighlight lang=apl inline>↑</syntaxhighlight>), [[Not Match]], [[Catenate First]] (<syntaxhighlight lang=apl inline>⍪</syntaxhighlight>), [[Compose]] (<syntaxhighlight lang=apl inline>∘</syntaxhighlight>), [[Each]] (<syntaxhighlight lang=apl inline>¨</syntaxhighlight>), [[Zilde]], [[Choose indexing]]
                           | [[Partitioned Enclose]] (<syntaxhighlight lang=apl inline>⊂</syntaxhighlight>), [[First]] (<syntaxhighlight lang=apl inline>⊃</syntaxhighlight>), [[Type]] (<syntaxhighlight lang=apl inline>⊤</syntaxhighlight>), [[Split]] (<syntaxhighlight lang=apl inline>↓</syntaxhighlight>), [[Mix]] (<syntaxhighlight lang=apl inline>↑</syntaxhighlight>), [[Not Match]], [[Catenate First]] (<syntaxhighlight lang=apl inline>⍪</syntaxhighlight>), [[Compose]] (<syntaxhighlight lang=apl inline>∘</syntaxhighlight>), [[Each]] (<syntaxhighlight lang=apl inline>¨</syntaxhighlight>), [[Zilde]], [[Choose indexing]]
|-
|-
| 1981 || [[SHARP APL]]  || [[function rank]], close [[Over]] (<syntaxhighlight lang=apl inline>⍤</syntaxhighlight>), [[Atop]] (<syntaxhighlight lang=apl inline>⍥</syntaxhighlight>), [[Under]] (<syntaxhighlight lang=apl inline>¨</syntaxhighlight>) ([[Operators and Functions]] 1978; not widely adopted)
| 1981 || [[SHARP APL]]  || [[function rank]], [[Close composition|close]] [[Over]] (<syntaxhighlight lang=apl inline>⍤</syntaxhighlight>), [[Atop]] (<syntaxhighlight lang=apl inline>⍥</syntaxhighlight>), [[Under]] (<syntaxhighlight lang=apl inline>¨</syntaxhighlight>) ([[Operators and Functions]] 1978; not widely adopted)
|-
|-
| 1982 || [[SHARP APL]]  || [[Determinant]] (<syntaxhighlight lang=apl inline>.</syntaxhighlight>) ([[Ken Iverson|Iverson]] 1982)
| 1982 || [[SHARP APL]]  || [[Determinant]] (<syntaxhighlight lang=apl inline>.</syntaxhighlight>) ([[Ken Iverson|Iverson]] 1982)

Revision as of 11:50, 17 March 2024

The following table lists APL primitives, primitive extensions, and primitive-like syntax that are implemented across many dialects, or are precursors of such features. Features are ordered by the first APL dialect to implement them, and previous definitions in other array languages or as proposals are indicated in parentheses. Because primitives tend to have multiple names and may even change name within a dialect, common modern names are used rather than the name when introduced.

Year Dialect Primitives
1965 IVSYS/7090 Add, Negate, Subtract, Multiply, Divide, Floor, Ceiling, Minimum, Maximum, Absolute value, Modulus, Exponential, Power, Not, And, Or, comparisons, Iota, Index of, Shape, Reshape, Ravel, Catenate, Rotate (as ↑↓), Member of, Encode, Decode, Reduce, Compress, Expand, Inner product, Outer product, Assignment, Bracket indexing, Branch/Label
1966 APL\360 Reciprocal, Natural Logarithm, Factorial, Combinations, Roll, Transpose, Rotate (), Function axis
1968 APL\360 Signum, Deal, Pi times, Circular, Nand, Nor, Take (), Drop (), Grade, Rotate First (), I-Beam
1970 APL\360 overtake with Take
1970 APL\360 Matrix Inverse, Matrix Divide, Laminate (,[])
1973 APL.SV Execute, Format, Scan
1980 SHARP APL GCD/LCM extending Or/And (proposed McDonnell 1975)
1980 SHARP APL Replicate extending Compress (Bernecky 1980)
dyadic and high-rank Grade (proposed Howard Smith 1979)
1981 NARS Enclose, Match, Pick, nested Index Generator, stranded assignment (proposed Brown 1971)
Unique, Union, Intersection, Set Difference, Commute (), Under (), Power (), Windowed Reduction (Operators and Functions 1978)
Partitioned Enclose (), First (), Type (), Split (), Mix (), Not Match, Catenate First (), Compose (), Each (¨), Zilde, Choose indexing
1981 SHARP APL function rank, close Over (), Atop (), Under (¨) (Operators and Functions 1978; not widely adopted)
1982 SHARP APL Determinant (.) (Iverson 1982)
1983 SHARP APL Rank operator () (Whitney 1982)
Left (), Right (), Conditional enclose/Link ()
1984 APL2 Partition (), First () and Mix () opposite to NARS, Index (), Find (), Depth ()
1987 SHARP APL short left argument for Take, Drop
1989 SHARP APL Nub Sieve (), Find (), Raze () (A Dictionary of APL 1987)
2009 NARS2000 Function trains (proposed Iverson and McDonnell 1989; J 1990)
2010 NARS2000 Tally (>, changed to following Dyalog, 2011) (A+ 1988, J 1990)
2010 NARS2000 Indices () (K 1996, J 2003)
2011 NARS2000 Over () (SHARP (close) 1981)
2011 NARS2000 Square Root/Root () (proposed McDonnell 1986; J 1990)
2011 Dyalog APL Key () (J 1990)
2014 Dyalog APL 2-train as Atop (proposed Hui 2006; I 2012), major cell search (A+ 1988)
2017 Dyalog APL At (@) (Scholes)
Stencil () (from Cut: Rationalized APL 1983, J 1994)
Interval Index () (A+ 1988, J 2006)
Nest () (SHARP 1983)
2019 dzaima/APL Reverse Compose () (I 2012, Extended Dyalog APL 2019)
2020 Dyalog APL Atop () (SHARP (close) 1981), Constant () (I 2012)

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