Exam-style question
Try this first
Which statement correctly describes partial application of a two-argument function?.
- A.Both arguments must be supplied before any result can be obtained
- B.Supplying the first argument returns a function waiting for the second argument
- C.Supplying the first argument always returns an integer immediately
- D.The function can only be used with one argument in total
Model answer
What a good answer should say
- Supplying the first argument returns a function waiting for the second argument
Explanation
Why this works
For add, supplying the first integer produces another function. That function accepts the remaining integer and then produces the integer result.
Common mistake
No common mistake is linked to this question yet.
