bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Unique of nested arrays doesn't work


From: Juergen Sauermann
Subject: Re: [Bug-apl] Unique of nested arrays doesn't work
Date: Sat, 15 Feb 2014 14:36:32 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Kacper,

thanks, should be fixed in SVN 125.

/// Jürgen


On 02/14/2014 06:16 PM, Kacper Gutowski wrote:
On 2014-02-14 16:15:33, Juergen Sauermann wrote:
fixed in SVN 120.
In r122, it doesn't give domain error anymore, but I think that
results are not correct:

       ⎕RL
1
       8⎕CR Y←⊂[1]?2 10⍴2
┌→──────────────────────────────────────────────────────────┐
│┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐│
││2 2│ │2 2│ │2 1│ │1 1│ │2 2│ │1 2│ │1 1│ │2 2│ │1 2│ │1 2││
│└───┘ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘│
└∊──────────────────────────────────────────────────────────┘
       8⎕CR Z←∪Y
┌→────────────────────────────────────────┐
│┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐│
││2 2│ │2 1│ │1 1│ │2 2│ │1 2│ │1 1│ │1 2││
│└───┘ └───┘ └───┘ └───┘ └───┘ └───┘ └───┘│
└∊────────────────────────────────────────┘
       8⎕CR ((Y⍳Y)=⍳⍴Y)/Y←,Y   ⍝ ←→ ∪Y
┌→──────────────────────┐
│┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐│
││2 2│ │2 1│ │1 1│ │1 2││
│└───┘ └───┘ └───┘ └───┘│
└∊──────────────────────┘
       Z[1] ≡ Z[4]
1


-k





reply via email to

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