bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Bug in ⊤ ?


From: Alexey Veretennikov
Subject: Re: [Bug-apl] Bug in ⊤ ?
Date: Thu, 30 Mar 2017 10:56:40 +0200

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 <address@hidden>:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]