Hi, It was confusing for me as well but it is the right behavior:
http://help.dyalog.com/15.0/Content/Language/Primitive%20Functions/Encode.htm Br, /Alexey 2017-03-30 6:25 GMT+02:00 Elias Mårtenson <loke...@gmail.com>: > While discussing APL and J on IRC, I discovered a weird behavioural > difference. Is GNU APL doing the right thing here? > > * 10 10 10 ⊤ 125 46 789* > ┏→━━━━┓ > ↓1 0 7┃ > ┃2 4 8┃ > ┃5 6 9┃ > ┗━━━━━┛ > > I'd expect to get the result that I'm getting by applying ⍉ to the result, > in other words, I'd expect the following: > > ┏→━━━━┓ > ↓1 2 5┃ > ┃0 4 6┃ > ┃7 8 9┃ > ┗━━━━━┛ > > Regards, > Elias >