What is “currying” in functional programming?
a) Transforming a function so that it takes multiple arguments into a sequence of functions, taking one argument
b) A technique to modify a function’s behavior
c) The process of memoization
d) Recursion on multiple arguments
Answer:
a) Transforming a function so that it takes multiple arguments into a sequence of functions, taking one argument
Explanation:
Currying is a technique used in functional programming. In this technique, a function with multiple arguments is transformed into a series of functions, each taking one argument.