From: Ryan Davis Date: 2009-12-25T10:05:47+09:00 Subject: [ruby-core:27318] Re: select! On Dec 24, 2009, at 04:01 , Gavin Sinclair wrote: > It seems wrong to me to invent new names when there's already a logical one. > > reject reject! > select ??? > > It's obvious what should go there, whether it's immediately appealing or not. > > The least you can say is that it's perfectly clear (from the name) > what select! would do if it existed. > > As a datum: I've frequently typed select! in the past, expecting it to > be there, so it _is_ useful to me. (I then add it myself, of course, > but curse having to do so.) I still don't think the concept makes sense. Sure, you seem to want to use it, but in the same vain do you also reach for delete_if's opposite? ary.delete_unless { ... } I sure don't. It doesn't make sense to me in exactly the same way that select! doesn't make sense to me.