bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Each bug


From: Elias Mårtenson
Subject: Re: [Bug-apl] Each bug
Date: Mon, 14 Jul 2014 11:36:36 +0800

Interesting. Given the following definition of pp:

    ∇Z←X pp Y
    ⎕←'comparing'
    ⎕←'  X=' (8⎕CR X)
    ⎕←'  Y=' (8⎕CR Y)
    Z←X≡Y
    ∇

I get the following output:

      (⊂'foo') pp¨ (,⊂'foo')
comparing
   X=  ┌─────┐ 
       │┌→──┐│ 
       ││foo││ 
       │└───┘│ 
       └∊────┘ 
   Y=  ┌→────┐ 
       │┌→──┐│ 
       ││foo││ 
       │└───┘│ 
       └∊────┘ 

Seems to be to be a bug in the implementation of ¨ (each).

Regards,
Elias


On 14 July 2014 11:28, Blake McBride <address@hidden> wrote:
GNU APL:


      (⊂'myfile')≡¨⊂'myfile'
1
      (⊂'myfile')≡¨,⊂'myfile'
0


IBM APL 2 returns 1 in both cases.  I had a vector I was using.  I got one result when I had 2 or more elements, and another result when there was only one element - even though it was still a vector.  IBM's result is consistent regardless of 0, 1, 2 or more elements.

Thanks.

Blake



reply via email to

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