November 2017
Intermediate to advanced
386 pages
9h 22m
English
It's also possible to write functions that return functions, and in Chapter 6, Producing Functions - Higher-Order Functions, we will be seeing more of this. For instance, in the lambda calculus, you don't write functions with several parameters, but only with one, by applying something called currying (why would you do this? Hold that thought; we'll come to that).
For instance, the function we saw previously that sums three numbers, would be written as follows:
const altSum3 = x => y => z => x + y + z;
Why did I change the function's name? Simply put, ...