Skip to content

Instantly share code, notes, and snippets.

@dsyme
Created February 5, 2016 11:56
Show Gist options
  • Save dsyme/4dc266348f47303f6b99 to your computer and use it in GitHub Desktop.
Save dsyme/4dc266348f47303f6b99 to your computer and use it in GitHub Desktop.
type Point =
struct
val X: float
val Y: float
new(x: float, y: float) = { X = x; Y = y }
new(x: float) = new Point(x, 3.0)
end
Point(3.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment