Group: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(Marshall moved page Group to Group (K): Decided (with Adám) that K doesn't have a strong claim to be primary vs BQN)
Tag: New redirect
 
(Disambiguation page)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Group (K)]]
'''Group''' is the name for primitives in multiple languages, each of which shares the property of collecting lists based on matching elements like SQL's [[wikipedia:Group by (SQL)|Group by]]:
* [[Group (K)]], <syntaxhighlight lang=k inline>=</syntaxhighlight> in [[K]], returns a [[dictionary]]
* [[Group (BQN)]], <syntaxhighlight lang=k inline>⊔</syntaxhighlight> in [[BQN]], returns an array
* [[Uiua]]'s primitive <code>⊕</code> is derived from BQN's and is covered by that page
 
{{APL built-ins}}[[Category:Primitive functions]]

Revision as of 01:26, 1 February 2024

Group is the name for primitives in multiple languages, each of which shares the property of collecting lists based on matching elements like SQL's Group by:


APL built-ins [edit]
Primitives (Timeline) Functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare Root
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 axis
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Withe, Atop, Over) ∙ Inner ProductDeterminantPowerAtUnderRankDepthVariantStencilCutDirect definition (operator)
Quad names Index originComparison toleranceMigration levelAtomic vector