Project

General

Profile

Feature #12110

Updated by nobu (Nobuyoshi Nakada) about 8 years ago

I often find myself running into unexpected results when using `#all?` #all? for example 

 ```ruby 
 [].all? { |e| false } # => true 
 ``` 

 Even though it's logically correct could we have a method that express the following? 

 ```ruby 
 foo.any? && foo.all?(&:bar) 
 ```

Back