Difference between revisions of "Commute"

From APL Wiki
Jump to navigation Jump to search
(Redirected page to Tilde Diaeresis)
Tag: New redirect
 
(Removed redirect to Tilde Diaeresis)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Tilde Diaeresis]]
+
{{Built-in|Commute|⍨}} is a [[Primitive function|primitive]] [[monadic]] [[operator]] that takes a [[function]] on its left and returns a new function with swapped arguments.
 +
 
 +
== Examples ==
 +
 
 +
<source lang=apl>
 +
 
 +
</source>
 +
 
 +
== External links ==
 +
 
 +
=== Lessons ===
 +
 
 +
* [https://chat.stackexchange.com/transcript/52405?m=40900200#40900200 APL Cultivation]
 +
 
 +
=== Documentation ===
 +
 
 +
* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Operators/Commute.htm Dyalog]
 +
* [http://microapl.com/apl_help/ch_020_020_400.htm APLX]
 +
* J [https://www.jsoftware.com/help/dictionary/d121.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/minusdot NuVoc]
 +
 
 +
{{APL built-ins}}

Revision as of 06:55, 26 April 2020

Commute () is a primitive monadic operator that takes a function on its left and returns a new function with swapped arguments.

Examples

External links

Lessons

Documentation


APL built-ins [edit]
Primitive functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare Root
Dyadic AddSubtractTimesDivideResiduePowerLogarithmMinimumMaximumBinomialComparison functionsBoolean functions (And, Or, Nand, Nor) ∙ GCDLCMCircularComplexRoot
Non-Scalar
Structural ShapeReshapeTallyDepthRavelEnlistTableCatenateReverseRotateTransposeRazeMixSplitEncloseNestCut (K)PairLinkPartitioned EnclosePartition
Selection FirstPickTakeDropUniqueIdentitySelectReplicateExpandSet functions (IntersectionUnionWithout) ∙ Bracket indexingIndex
Selector Index generatorGradeIndex OfInterval IndexIndicesDeal
Computational MatchNot MatchMembershipFindNub SieveEncodeDecodeMatrix InverseMatrix DivideFormatExecuteMaterialiseRange
Primitive operators Monadic EachCommuteConstantReplicateExpandReduceWindowed ReduceScanOuter ProductKeyI-beamSpawnFunction axis
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Atop, Over) ∙ Inner ProductPowerAtUnderRankDepthVariantStencilCut (J)
Quad names
Arrays Index originMigration levelAtomic vector
Functions Case convertUnicode convert
Operators SearchReplace