Answer to Question s2-22
Type error.
You can't add 1 to a list.
Incorrect.
The head of successors(
L
) is head(
L
) + 1, not head(
L
). For example, successors([2,3,4]) = [3,4,5]. The head of [3,4,5] is 2 + 1 = 3.