Project

General

Profile

Feature #12110

Updated by rydlaw (Waldyr de Souza) about 4 years ago

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

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

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

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

Back