I am reading the book, and it talks about the definition of typeclass Eq
There are two functions ==
, /=
in the Eq, and they are implemented as:
x == y = not (x /= y)
x /= y = not (x == y)
The book says that they are mutual recursion, the result of the function is in item of another function.
What I don't understand is that I don't see a base case in the mutual recursion, and I don't understand why the functions will stop and return a result.