Project

General

Profile

Feature #5644

add Enumerable#exclude? antonym

Added by sunaku (Suraj Kurapati) almost 9 years ago. Updated almost 3 years ago.

Status:
Feedback
Priority:
Normal
Target version:
-
[ruby-core:41086]

Description

Please add Enumerable#exclude? as antonym of Enumerable#include?

This allows me to construct Boolean expressions more pleasantly:

if File.exist? some_file and not some_list.include? some_file

Can be written as:

if File.exist? some_file and some_list.exclude? some_file

Thanks for your consideration.

Also available in: Atom PDF