From: Gavin Sinclair Date: 2002-11-27T20:59:03+09:00 Subject: Re: set operation From: > 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