From: Gavin Sinclair Date: 2003-07-27T11:08:27+09:00 Subject: Re: Set doesn't have [] instance method - and Set#| is inconsistent with Set#& On Sunday, July 27, 2003, 3:28:06 AM, Gavin wrote: > It should, shouldn't it? It's meant to combine the fast lookup of > Hash with the convenience of Array, yet the most important method Hash > and Array have in common, Set lacks! > [...] Oh well, judging by the responses, I guess it's not all that sensible after all. I just don't like typing "include?" for something as simple as a lookup, especially when Set (to my mind) is just a special case of Hash -- with a bit more thrown in. Also since "include?" is bad grammar. Another question, then. Why does Set#| return a Set, but Set#& returns an Array? Gavin