You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
213 B
Haskell

sayHello :: String -> IO ()
sayHello x = putStrLn ("Hello, " ++ x ++ "!")
triple x = x * 3
thirdLetter :: String -> Char
thirdLetter x = x !! 2
letterIndex :: Int -> Char
letterIndex = (!!) "Curry is awesome!"