[Haskell Cheat Sheets] (https://gist.github.com/vpayno/0a7db3ff9a4fac8774c5)
-
If statements have to have a an else clause.
-
If statements always return a value.
myAbs x = if x < 0 then x * (-1) else x
If statements have to have a an else clause.
If statements always return a value.
myAbs x = if x < 0 then x * (-1) else x