learn you a haskell for great good - examples converted to scala