Farrel Lifson wrote:
> I was thinking about Enumerable (one of Ruby's more powerful modules)
> and I was wondering whether the following proposal to extend
> Enumerable#all?/any? would have any merit. In a nutshell I think  any?
> and all?  should take one argument which is then applied to each item
> using the === operator. For example:
>  [ "one", 2, "three"].all?( String )

Makes sense, because

[ "one", 2, "three"].grep( String )

is already supported.

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407