Skip to content

Instantly share code, notes, and snippets.

@dbrattli
Created October 7, 2018 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrattli/83726e780953131295d442dd52ead93c to your computer and use it in GitHub Desktop.
Save dbrattli/83726e780953131295d442dd52ead93c to your computer and use it in GitHub Desktop.
Pythagoras
let add a b = a + b
let square x = x * x
let pythagoras a b = sqrt (add (square a) (square b))
let result = pythagoras 10.0 20.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment