Partially applied reduce with arrow functions.js
var reduce = fn => (Arr, acc) => Arr.reduce(fn, acc); var add = reduce((acc,x)=>acc+x); add([1,2,3],0);// -> 6