- What is partial function application?
Partial function application is the operation of obtaining a new function that takes N-1 parameters from a function, which in turn takes N parameters by binding one of the parameters to a value.
- What is currying?
Currying is the operation of splitting a function that takes N parameters into N function, with each taking one parameter.
- How does currying help to implement partial application?
Given the curried function f(x)(y), the partial application of f on x = value can be obtained by simply calling f with the value like this: g = f(value).
- How can we implement partial application in C++?
Partial application can be implemented manually in C++, but it's easier to implement it using the bind function from the functional header.