In functional programming, what does “partial application” mean?
a) Applying a function to all arguments at once
b) Applying a function to some arguments and returning a new function for the remaining arguments
c) Applying a function conditionally
d) Using mutable state in functions
Answer:
b) Applying a function to some arguments and returning a new function for the remaining arguments
Explanation:
Partial application is a technique in which a function is applied to some of its arguments, producing a new function that takes the remaining arguments.