Created
April 26, 2015 13:48
-
-
Save SteveGilham/5c47e46c37289d6ca167 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
type Point(x,y) | |
= class | |
let mutable vx = x | |
let mutable vy = y | |
interface IPoint | |
with member p.move q = vx <- vx + q.x; | |
vy <- vy + q.y | |
member p.x = vx | |
member p.y = vy | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment