myLast :: [a] -> a
-- https://wiki.haskell.org/99_questions/Solutions/1
myLast [] = error "List empty"
myLast [x] = x
myLast (x:xs) = myLast xs