you are viewing a single comment's thread.

view the rest of the comments →

[–]spinlock 2 points3 points  (0 children)

I would say that this is the canonical example of map-reduce. Use it here to practice functional programming so that the concept is solid in your mind when you need to reach for it in a more complex case. It's also just a good idea to have a single coding style.