From: Jeffrey Schwab Date: 2006-11-02T23:20:13+09:00 Subject: Re: Question about the Set class, XOR, and arrays Daniel Berger wrote: > Ryan Davis wrote: >> On Nov 1, 2006, at 12:25 PM, Daniel Berger wrote: >> >>> irb(main):002:0> Set[1,2,3] ^ Set[3,4,5,5] >>> => # >>> >>> Ok, looks good. >>> >>> irb(main):003:0> Set[1,2,3] ^ [3,4,5,5] >>> => # >>> >>> What?! I'm confused. Do I need a refresher in Set theory or something? >> It is the way it is implemented... subsequent 5's will toggle it on >> and off. You should file a bug. > > Done. > > Thanks for confirming my sanity. In what way is this a bug? I'm not aware of set theory saying anything about the intersection of a set with an array.