From: shevegen@... Date: 2016-02-25T21:29:23+00:00 Subject: [ruby-core:73991] [Ruby trunk Feature#12110] Create a method to avoid vacuous truth? Issue #12110 has been updated by Robert A. Heiler. Here is the biggest problem: - What name would you give it? :) ---------------------------------------- Feature #12110: Create a method to avoid vacuous truth? https://bugs.ruby-lang.org/issues/12110#change-57143 * Author: Waldyr de Souza * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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 the following? foo.any? && foo.all?(&:bar) -- https://bugs.ruby-lang.org/ Unsubscribe: