Do FICS Exercise
4, but use #lang plait
. Your function body should be a single
cond. For extra challenge try to reduce the number of cases.
Your solution should pass the following tests.
(test (middle-of-three 1 2 3) 2)
(test (middle-of-three 1 3 2) 2)
(test (middle-of-three 2 1 3) 2)
(test (middle-of-three 2 3 1) 2)
(test (middle-of-three 3 1 2) 2)
(test (middle-of-three 3 2 1) 2)
Submit your code using the handin-server by the end of the lab.