3: “Lazy Evaluation” (2.5 marks)
For this question, you will consider the following collection ofHaskell function definitions
and then evaluate whichever of the expressions (of the followingpage) corresponds to the
2nd LAST DIGIT of your student number.
puzzle :: Int -> Int -> Int
puzzle a b = a * b
enigma :: Int -> Int -> Int
enigma a b = a – b
secret :: Int -> Int -> Int
secret a b = b – a
If the 2nd LAST DIGIT of your student number is 1, 2, or 3, thentrace the evaluation of:
enigma (secret (puzzle 1 3) 5) 7
If the 2nd LAST DIGIT of your student
PayPal Gateway not configured
PayPal Gateway not configured