|
From: | Blake McBride |
Subject: | Re: [Bug-apl] Format returns wrong rank |
Date: | Sun, 25 May 2014 12:59:58 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |