Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created August 5, 2016 01:29
Show Gist options
  • Save sleexyz/ad24629f60ac83bb465865fbc61527a1 to your computer and use it in GitHub Desktop.
Save sleexyz/ad24629f60ac83bb465865fbc61527a1 to your computer and use it in GitHub Desktop.
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