-- Chapter 1, file: baby.hs

doubleMe x = x + x

--doubleUs x y = x * 2 + y * 2
doubleUs x y = doubleMe x + doubleMe y -- Functions can be used within other functions

-- Function with if-then-else
doubleSmallNumber x = if x > 100
                      then x
                      else x * 2

doubleSmallNumber' x = (if x > 100 then x else x * 2) + 1

-- Function that takes no arguments
conanO'Brien = "It's a-me, Conan O'Brien"
