Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
main = do line <- fmap reverse getLine
putStrLn $ "You said " ++ line ++ " backwards!"
putStrLn $ "Yes, you really said " ++ line ++ " backwards!"
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