From: Roger Pack on
Since there's an Array#reject, shouldn't there be an Array#accept?
-r
--
Posted via http://www.ruby-forum.com/.

From: 7stud -- on
Roger Pack wrote:
> Since there's an Array#reject, shouldn't there be an Array#accept?
> -r

It's called Array#select.
--
Posted via http://www.ruby-forum.com/.

From: yermej on
On Oct 9, 1:31 pm, Roger Pack <rogerpack2...(a)gmail.com> wrote:
> Since there's an Array#reject, shouldn't there be an Array#accept?

Maybe, but there's Array#select instead.