Add the given examples as testcases for Set9a exercise 4.
Context
I was hasty reading the exercise and thought that the function should return the first repetition (not in a row). For example, my implementation of repeated [1,2,1,2,3,3] returned Just 1 instead of Just 3. This faulty implementation passed through the current test suite.
Change
Add the given examples as testcases for Set9a exercise 4.
Context
I was hasty reading the exercise and thought that the function should return the first repetition (not in a row). For example, my implementation of
repeated [1,2,1,2,3,3]
returnedJust 1
instead ofJust 3
. This faulty implementation passed through the current test suite.