Created
October 7, 2018 10:38
-
-
Save dbrattli/83726e780953131295d442dd52ead93c to your computer and use it in GitHub Desktop.
Pythagoras
This file contains 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
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