On Thu, 10 Aug 2006, Andre Nathan wrote:

> Hello
>
> I found this to be somewhat amusing:
>
>>> a = []
> => []
>>> a.all?
> => true
>>> a.all? { |i| i == 10 }
> => true
>
> Is there any reasoning for Enumerable#all? to always return true for
> empty arrays?
>
> Best regards,
> Andre

well - it's either that or false.  we'd need maybe for it to really make
sense.

consider

   [].all?{|x| x.nil?}  # true or false??

either is arbitrary

-a
-- 
to foster inner awareness, introspection, and reasoning is more efficient than
meditation and prayer.
- h.h. the 14th dali lama