Created
April 10, 2015 09:10
-
-
Save jliuhtonen/53bac6cf1ead1bc98a1e to your computer and use it in GitHub Desktop.
100 to 1
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
print100' i | |
| i >= 100 = [] | |
| otherwise = (100 - i) : print100' (i + 1) | |
print100 = mapM_ (putStrLn . show) $ print100' 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment