From: Yusuke Endoh Date: 2010-03-03T01:16:53+09:00 Subject: [ruby-core:28424] [Feature #2515] Array#select! Issue #2515 has been updated by Yusuke Endoh. Hi, 2010/3/2 Marc-Andre Lafortune : > I feel the name select! is as appropriate as map! , collect! and reject! Some feel appropriate, and some inappropriate. Seems like "he said she said" scenario. Is there another reason than feeling and consistency (= orthogonality) ? I'm almost neutral for the suggestion, but take a opposite point of view for the discussion. If I ignore Array#reject! and consider only the name "select!", I can imagine the different behavior. The name seems to me to return an array whose elements meet condition, and removes the *selected* elements from the original array, like Array#delete_at and #shift: ary = [1, 2, 3, 4, 5] p ary.select! {|x| x.even? } #=> [2, 4] p ary #=> [1, 3, 5] -- Yusuke ENDOH ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2515 ---------------------------------------- http://redmine.ruby-lang.org