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
11 lines
213 B
Haskell
8 years ago
|
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!"
|