From: "Hal E. Fulton" Date: 2003-08-01T04:10:47+09:00 Subject: Re: Changing ==,>,<, etc ----- Original Message ----- From: "Daniel Carrera" To: "ruby-talk ML" Sent: Thursday, July 31, 2003 1:46 PM Subject: Re: Changing ==,>,<, etc > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > ># 1 < any(1,2,3) > > > > What you want can be done with the any? method for arrays. > > > > [1, 2, 3].any? { |e| 1 < e } > > But the syntax "1 < any(1,2,3)" is very readable. I've always favored an "in" operator as in Pascal or (I think) Python. It would call include? just as for/in calls each: 1 in [1,2,3] # means [1,2,3].include? 1 Hal -- Hal Fulton hal9000@hypermetrics.com