Skip to content

Instantly share code, notes, and snippets.

@zonble
Created March 7, 2012 14:15
Show Gist options
  • Save zonble/1993376 to your computer and use it in GitHub Desktop.
Save zonble/1993376 to your computer and use it in GitHub Desktop.
純粹練習…
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