Created
August 5, 2016 01:29
-
-
Save sleexyz/ad24629f60ac83bb465865fbc61527a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 foo : int = | |
2 + 2 | |
let bar : float = | |
2.0 +. 2.0 | |
let baz : string = | |
string_of_int foo ^ string_of_float bar | |
// demonstration of ocaml's lack of ad-hoc polymorphism |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment