On Tue, 19 Jun 2001 11:33:58 +0900
matz / zetabits.com (Yukihiro Matsumoto) wrote:

> In 1.7, we have "Enumerable#all?" and "Enumerable#any?".
> 
>   [1,2,3].all?{|x| > 0}           # true
>   [1,2,3].any?{|x| == 2}          # true

Should it be {|x| x > 0} and {|x| x == 2} or is this syntax allowed in
1.7?


Mike.
midulo.