Hi, It's very exciting to see that the Ruby community is quite active. Thanks for the help. BTW, is there a KB style archive of previous discussion so that we can search for help before asking here? Thanks! Shannon >From: "Gavin Sinclair" <gsinclair / soyabean.com.au> >Reply-To: ruby-talk / ruby-lang.org >To: ruby-talk / ruby-lang.org (ruby-talk ML) >Subject: Re: set operation >Date: Wed, 27 Nov 2002 20:59:03 +0900 > >From: <nobu.nokada / softhome.net> > > > > Hi, > > > > At Wed, 27 Nov 2002 20:18:15 +0900, > > Tim Bates wrote: > > > > if ([string] & array_of_strings).length!=0 then.... > > > > > > I don't know what 'in' is used for, but another way to do this might >be > > > if [array_of_strings].index(myString) then... > > > > Or: > > > > array_of_strings.include?(myString) > > > >I've often thought that Array#=== should do the same thing as >Array#include? >It seems wasted to be the same as ==. > >Maybe it's just me. > >Gavin _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail