Array#accept

Since there’s an Array#reject, shouldn’t there be an Array#accept?
-r

Roger P. wrote:

Since there’s an Array#reject, shouldn’t there be an Array#accept?
-r

It’s called Array#select.

On Oct 9, 1:31 pm, Roger P. [email protected] wrote:

Since there’s an Array#reject, shouldn’t there be an Array#accept?

Maybe, but there’s Array#select instead.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs