From: Jim Freeze Date: 2003-04-08T23:35:02+09:00 Subject: Re: Array Sutraction On Tuesday, 8 April 2003 at 23:14:43 +0900, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Michael Campbell" > To: "ruby-talk ML" > Sent: Tuesday, April 08, 2003 8:59 AM > Subject: Re: Array Sutraction > > > > > I'd view the substraction "a-b" as "remove all elements in b from > > > a", > > > which would reasonable lead to all 2's removed from [1,1,2,2,2] > > > yielding > > > [1,1]. > > > > > > So [1, 1, 2, 2] - [2] should yield the same as [1, 1, 2, 2] - [2, 2]? > > That seems odd to me. > > I agree. But the presence of a Set in 1.8 > maes me feel better. After all, an Array > is not in itself a bag or a set, so we can Hmm, I was not aware that an Array was not a bag. Can you give an example Hal. > define its minus operator more or less > arbitrarily. --^^^^^^^^^^^ You found the confusion. :) -- Jim Freeze ---------- Corrupt, adj.: In politics, holding an office of trust or profit.