For a task I need to implement a function in Haskell, and the first two parts of the definition are:
> collatz :: Integer -> Integer -> Integer >