Project

General

Profile

Actions

Feature #5644

closed

add Enumerable#exclude? antonym

Added by sunaku (Suraj Kurapati) about 13 years ago. Updated almost 7 years ago.

Status:
Feedback
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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0