Note that your final mark will not be saved in the system.
22 - Functional Programming GapFill
You must fill all the gaps before clicking ‘Check Answers!’
A function is such that f: A → B, where A is the type, and B is the type. A, in this instance, is called the , and B is called the , and both are of objects in some data type - real numbers, for example.
Suppose we take the function f(x) = x2 + 2x + 3. For this function, as with any, each value of x can generate result(s).
Two functions can be combined in order to create a new function, and this operation is called functional
. With two functions f: P → Q and g: Q → R, performing this operation results in a function whose
and
.