How To Use Ruby's partition, map, and reduce Methods

The methods in the Enumerable module—select, reject, map, reduce, and friends—are particularly great examples of the power of blocks. Master the Enumerable methods and you'll be a more efficient Ruby programmer!

Start saving time and improving your code by checking out the video below from our Mastering Ruby Blocks & Iterators course. It's part two of a two-part series on tapping into the Enumerable module.

Recent Tutorials

The Pragmatic Studio is where developers have come since 2005 to learn, practice, and improve their craft. In our acclaimed courses, you get the most up-to-date and approachable developer training around!
Learn more…