From: George Date: 2007-10-12T12:31:15+09:00 Subject: Re: will #in? be in ruby2? (was Re: Finding shared elements between to arrays.) On 10/10/07, Robert Dober wrote: > On 10/10/07, Robert Dober wrote: > > > containment) , but I would rather compare > > > > a3 = a1.select{ |e| e.in? a2} > > > > to > > > > a3 = a1 & a2 > > > ... but it is not the same :( , & eliminates duplicates, always forget > about this :( Also, #& uses #eql? whereas #include? uses #== .