Beginner
Compilers & Programming Language Theory
Q34 / 100
What is currying?
Correct! Well done.
Incorrect.
The correct answer is B) Transforming a function of n arguments into a chain of n single-argument functions: f(a,b) becomes g(a)(b)
B
Correct Answer
Transforming a function of n arguments into a chain of n single-argument functions: f(a,b) becomes g(a)(b)
Explanation
Currying (Haskell Curry): add(3)(4) instead of add(3,4). In Haskell, all functions are curried by default. Enables partial application and function composition. Lambda calculus theoretically needs only single-argument functions.
Progress
34/100