Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created April 11, 2014 22:20
Show Gist options
  • Save bjartwolf/10506248 to your computer and use it in GitHub Desktop.
Save bjartwolf/10506248 to your computer and use it in GitHub Desktop.
1b.fs
[<Measure>] type Length
[<Measure>] type Area = Length*Length
let area (a : float<Length>) (b: float<Length>) = a * a + b * b
let a1:float<Area> = area 0.0<Length> 1.0<Length>
a1.Dump()
@bjartwolf
Copy link
Author

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment