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