January 2020
Intermediate to advanced
470 pages
11h 13m
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 lambda calculus, you don't write functions with several parameters, but only one; you do this by using a technique called currying (why would you do this? Hold that thought; we'll come to this later).
For instance, the function that 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, ...
Read now
Unlock full access