Skip to content

Instantly share code, notes, and snippets.

@jliuhtonen
Created April 10, 2015 09:10
Show Gist options
  • Save jliuhtonen/53bac6cf1ead1bc98a1e to your computer and use it in GitHub Desktop.
Save jliuhtonen/53bac6cf1ead1bc98a1e to your computer and use it in GitHub Desktop.
100 to 1
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