Created
April 26, 2015 13:52
-
-
Save SteveGilham/42af15b33fe331a80aa8 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: int; y: int; move: Point -> Point } | |
let rec makePoint vx vy = | |
let doMove p = makePoint (vx + p.x) (vy + p.y) | |
{ x = vx; y = vy; move = doMove };; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment