Question: answer these questions using SML and make sure functions work. 3. (5 points) Define a function repeats of type 'a list -> bool so that
3. (5 points) Define a function repeats of type 'a list -> bool so that repeats (L) is true if and only if the list L has two equal elements next to each other. You have to use pattern matching in your function definition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
