Last active
September 11, 2017 23:25
-
-
Save carlosgruiz-dev/2af627a0183eeec0a4351f6971fb9671 to your computer and use it in GitHub Desktop.
Fuck Every Word (haskell dumb program)
This file contains hidden or 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
-- Fuck Every Word | |
-- inspired by https://twitter.com/fuckeveryword | |
-- usage: runghc few.hs < some_text_file.txt | |
fuckAWord a = "Fuck " ++ a ++ "!\n" | |
fuckEveryWord = concat . map fuckAWord . words | |
main = interact fuckEveryWord |
This file contains hidden or 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
-- Fuck Every Word | |
-- inspired by https://twitter.com/fuckeveryword | |
-- usage: runghc few.hs | |
fuckAWord a = "Fuck " ++ a ++ "!\n" | |
fuckEveryWord b = concat $ map fuckAWord $ words b | |
main = do | |
putStrLn "You're words: " | |
line <- getLine | |
putStrLn "\nReturn:" | |
putStrLn $ fuckEveryWord line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment