Joined July 2012
·
F5b375690fefcb29c25f2cfbb3286f19

Corey Grunewald

Application Engineer at Vimeo
Application Engineer
Vimeo
·
Brooklyn, New York
·
·
·

As you can see, inequality issues can arise. This boxing issue occurs for any primitive.

Posted to Using .reject with .map in Ruby over 1 year ago

@hauleth This is just an abstract example. Ideally if you just only wanted to remove items from a collection, you could just use .reject and it will return a new array. Of course you would only use map if you wanted transform the collection in some way.

Achievements
102 Karma
3,608 Total ProTip Views