Project

General

Profile

Feature #12110

Updated by nobu (Nobuyoshi Nakada) over 3 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