Question: Standard ML only and provide comments Define a function repeats of type ''a list -> bool so that repeats(L) is true if and only if
Standard ML only and provide comments
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
