Hacker News new | ask | show | jobs
by Stuk 5518 days ago
This isn't a particularly good example as you're doing all the work adding up the word counts in your reduce function.

A better example would count the occurrences of the words in each line in the map, and then add up the totals in reduce.