Content deleted Content added
Rescuing 0 sources and tagging 1 as dead.) #IABot (v2.0.9.3) (Eastmain - 13642 |
m Fixing broken anchor: 2021-01-10 #In-order (LNR)→Tree traversal#In-order, LNR |
||
Line 265:
</syntaxhighlight>
{{code|Q3|apl}} is a variant that catenates the three parts enclosed by the function {{code|⊂|apl}} instead of the parts ''per se''. The three parts generated at each recursive step are apparent in the structure of the final result. Applying the function derived from {{code|Q3|apl}} to the same argument multiple times gives different results because the pivots are chosen at random. [[Tree traversal#In-order,
<syntaxhighlight lang=apl>
Q3←{1≥≢⍵:⍵ ⋄ (⊂∇ ⍵⌿⍨0>s)⍪(⊂⍵⌿⍨0=s)⍪⊂∇ ⍵⌿⍨0<s←⍵ ⍺⍺ ⍵⌷⍨?≢⍵}
|