Created
October 1, 2014 18:27
-
-
Save qxjit/a3f56f3272ba0da6e730 to your computer and use it in GitHub Desktop.
multiline let which is a value, not a function
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 f x = | |
let a = | |
let c = 2 | |
let d = 3 | |
c + d*x | |
a + a | |
printfn "%d" (f 1) | |
// prints 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment