Last active
August 29, 2015 13:59
-
-
Save bjartwolf/10505433 to your computer and use it in GitHub Desktop.
streetfight1a
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
[<Measure>] type Length | |
[<Measure>] type Area = Length*Length | |
let area (b : float<Length>) (a: float<Length>) = a*b^2 | |
let a1:float<Area> = area 3.0<Length> 5.0<Length> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type mismatch. Expecting a float but given a float<Length ^ 3> The unit of measure 'Area' does not match the unit of measure 'Length ^ 3'