4,509
edits
(Reference for catenate over enclose in 1981) |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 1: | Line 1: | ||
{{Built-in|Pair|⍮}} or '''Juxtapose''' is a [[primitive function]] equivalent to the [[dfn]] <source lang=apl inline>{⍺←,⊂ ⋄ ⍺ ⍵}</ | {{Built-in|Pair|⍮}} or '''Juxtapose''' is a [[primitive function]] equivalent to the [[dfn]] <source lang=apl inline>{⍺←,⊂ ⋄ ⍺ ⍵}</syntaxhighlight> which aids in constructing nested arrays during [[tacit programming]] where [[stranding]] by juxtaposition is not available. It is also equivalent to the [[catenate|catenation]] of the [[enclose]]d arguments; <source lang=apl inline>,⍥⊂</syntaxhighlight> using the [[Over]] [[operator]]<ref>[https://www.jsoftware.com/papers/satn41.htm "Composition and Enclosure"] § | ||
Composition Operators. SATN-41, 1981-06-20.</ref> or <source lang=apl inline>,⍨∘⊂⍨∘⊂</ | Composition Operators. SATN-41, 1981-06-20.</ref> or <source lang=apl inline>,⍨∘⊂⍨∘⊂</syntaxhighlight> using only the traditional operators [[Commute]] and [[Compose]]. It was introduced in [[Extended Dyalog APL]], and then adopted into [[dzaima/APL]]. | ||
== Common usage == | == Common usage == | ||
Line 11: | Line 11: | ||
│9 10 11│3 4 5│ | │9 10 11│3 4 5│ | ||
└───────┴─────┘ | └───────┴─────┘ | ||
</ | </syntaxhighlight> | ||
{{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | {{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | ||
Line 21: | Line 21: | ||
9 10 11 | 9 10 11 | ||
3 4 5 | 3 4 5 | ||
</ | </syntaxhighlight> | ||
{{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | {{Works in|[[dzaima/APL]], [[Extended Dyalog APL]]}} | ||