Last active
August 29, 2015 13:59
-
-
Save Nucleareal/10960231 to your computer and use it in GitHub Desktop.
if文と三項演算子を使わずにaとbの大きい数を表示 - Haskell
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
| main = do | |
| let a = 10 | |
| b = 20 in | |
| print $ if a > b then a else b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment