From: Daniel Carrera Date: 2003-08-01T03:46:16+09:00 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. - -- Daniel Carrera | PGP: 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88 Math PhD. UMD | http://www.math.umd.edu/~dcarrera/pgp.html * * * * * Weekly Smile * * * * * * * * * * * * * * * * * * * * * * * * Sign in a hotel in Athens: Visitors are expected to complain at the office between the hours of 9 and 11 A.M. daily. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (SunOS) iD8DBQE/KWPwnxE8DWHf+OcRAjCIAKDjSPVPD+Ukb57lOTwE5C6qMA6eYwCg8a33 VaPrRThTPqHJ1m1NPH0yokw= =h8XW -----END PGP SIGNATURE-----