Skip to content

Instantly share code, notes, and snippets.

@tetsu-miyagawa
Last active August 29, 2015 14:23
Show Gist options
  • Save tetsu-miyagawa/e78b74b261dfb310326d to your computer and use it in GitHub Desktop.
Save tetsu-miyagawa/e78b74b261dfb310326d to your computer and use it in GitHub Desktop.
関数プログラミング入門 練習問題1.1.3
square :: Float -> Float
square x = x * x
areaOfCircle :: Float -> Float
areaOfCircle r = (22 / 7) * square r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment