GitbookIO/javascript — pull request #14 by ivanistheone (2014-04-04 07:48:59+00:00)
Title: Added map as a motivating example

I really like this book, but I thought the higher order initial example was too simple to the point of being uninteresting... so I thought I would bring lists into the picture --- and list processing.

I didn't get a chance to work this in, but perhaps the pitch for functional techniques could be "look, once we define `map` we don't need to write for loops anymore when we want to process lists elementwise...