Skip to content

Instantly share code, notes, and snippets.

@milkypostman
Created May 1, 2011 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milkypostman/950916 to your computer and use it in GitHub Desktop.
Save milkypostman/950916 to your computer and use it in GitHub Desktop.
printElements :: [String] -> IO()
printElements [] = return ()
printElements (x:xs) = do putStrLn x
printElements xs
filth :: Integer -> Bool
filth i = (==) 0 (mod i 200000000)
main = printElements (map show (filter filth [1..2000000000]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment