From: Saku Ytti Date: 2008-04-12T02:34:16+09:00 Subject: Re: delete_if, select and (lack of) delete_if!, self.POLS == false On (2008-04-12 02:26 +0900), David A. Black wrote: > So you want a kind of #keep_if ? Just to implement the previous suggestion correctly(tm) this time. This is more or less what I want class Array;def reject!(&blk) select(&blk).each{|e|delete e};end def select!(&blk) reject(&blk).each{|e|delete e};end;end now if I do array.reject! I actually get array mutated but it returns the non-rejected. So kinda destructive/mutating select. -- ++ytti