Created
March 7, 2012 14:15
-
-
Save zonble/1993376 to your computer and use it in GitHub Desktop.
純粹練習…
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
fahrenheit :: RealFloat a => a -> a | |
fahrenheit c = c * (9 / 5) + 32 | |
celsius :: RealFloat a => a -> a | |
celsius f = (f - 32) * 9 / 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment