Solution Review: Partial Functions
In this lesson, we will discuss the solutions to the questions in the previous lesson.
Press + to interact
function func1(f) {return function(x) {return function(y) {return f(x, y);}}}func1(addition)(2)(3)
For the code above, you had to answer the following question:
Explanation #
The correct option is B. func1
is a curry function. Let’s understand why.
Currying converts a function taking n ...
Access this course and 1400+ top-rated courses and projects.