From: "rosenfeld (Rodrigo Rosenfeld Rosas)" Date: 2012-03-30T23:13:36+09:00 Subject: [ruby-core:43940] [ruby-trunk - Feature #5644] add Enumerable#exclude? antonym Issue #5644 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas). I think I've misunderstood the question posed by Nikolai. I've just read it again but I think that the other meaning presented by him doesn't make any sense. "does the array contain the elements that should be excluded?". Really? I read this like in English: Does [1, 3, 5] exclude 4? Ask someone that doesn't know anything about programming and see what will she answer to this question. ---------------------------------------- Feature #5644: add Enumerable#exclude? antonym https://bugs.ruby-lang.org/issues/5644#change-25466 Author: sunaku (Suraj Kurapati) Status: Feedback Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: 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. -- http://bugs.ruby-lang.org/