Playing with functional programming

I’m still earring a colleague of mine saying: “all the human problems are
solvable with an Object Oriented approach.” I didn’t argue a
long time with her. She maybe never had to think about other kind of problems,
problems that require to break that paradigm apart.

Google offers an interesting introduction to the Map/Reduce paradigm. Map/Reduce is a way to distribute
operations on datas (map) on several computers and then
to aggregate the outputs to get the result (reduce).

Before Functional JavaScript is built for web browser, you have to set window
to the context (loading will fail instead). Then here we go with the first
exercise: concat([[1,2],[3,4,5],[6]]) → [1,2,3,4,5,6].