Hi, have a syntax question. In Dyalog, evaluating ⍴(+/⊢⌺3 3) 2 2 ⍴ 255 gives 2 2 3; the +/⊢ forms a two-element function train acting as the left operand of ⌺
But evaluating +/×⍤1¨1 0 ¯1 gives 0; the left operand of ⍤ is × rather than the train +/×
Why is this? What's the rule for tacit functions to the left of a pivotal operator?
I am trying to write a radix sort that shows intermediate steps. This is what I can think of: {⍪¨⊃¨{⍵+.×⍨(⍋((d⍴10)⊤⍵)[⍺;])∘.=⍳≢⍵}/¨(⌽¨,\⌽⍳d←⍺),¨⊂⊂⍵} May I ask how it can be improved, or if there is any better approach?
Something like this. The first column sort the numbers by the last digit. Then, base on that result, the second column sort them by the second last digit, etc.