Subject: Enumerable#all? and empty arrays
From: Andre Nathan <andre digirati.com.br>
Date: Thu, 10 Aug 2006 01:41:48 +0900
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