Practice question from Higher-Order Functions

Complete the partial application:

let multiply x y = x * y
let double = multiply ____
let result = double 7

Answer

2

Explanation

Partial application fixes the first parameter. multiply 2 creates a function waiting for the second parameter, effectively (fun y -> 2 * y). Calling double 7 returns 14.

More questions from Functional Programming with F#