Created
June 24, 2015 11:39
-
-
Save shigemk2/2fcb11020669ca841a7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = do line <- fmap reverse getLine | |
putStrLn $ "You said " ++ line ++ " backwards!" | |
putStrLn $ "Yes, you really said " ++ line ++ " backwards!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = do line <- getLine | |
let line' = reverse line | |
putStrLn $ "You said " ++ line' ++ " backwards!" | |
putStrLn $ "Yes, you said " ++ line' ++ " backwards!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment