Joined July 2012

Corey Grunewald

Application Engineer at Vimeo
Application Engineer
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.

102 Karma
3,608 Total ProTip Views