[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Format returns wrong rank
From: |
Juergen Sauermann |
Subject: |
Re: [Bug-apl] Format returns wrong rank |
Date: |
Sun, 25 May 2014 18:35:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Blake,
thanks, fixed in SVN 290.
As far as ⍕ is concerned there seems to be no right or wrong.
The IBM APL2 language reference contradicts itself (e.g. pages 135 vs.
136 for nested values)
and the ISO standard always wants a result rank ≥ 2 while IBM sometimes
gives rank = 1.
I have tried my best to make sense out of that.
My approach was even different (rank 1 for one-line output and rank 2
otherwise) but now
it should be a little closer to IBM APL2.
/// Jürgen
On 05/25/2014 01:20 AM, Blake McBride wrote:
⍴⍕,5
1
⍴⍕2 1⍴5
2 1
⍴⍕1 1⍴5
1
The final result should have been:
1 1
Blake