Skip to content

Instantly share code, notes, and snippets.

@mmalolepszy
Created April 26, 2016 10:08
Show Gist options
  • Select an option

  • Save mmalolepszy/1869eab08e164fae5524cb8786a044c4 to your computer and use it in GitHub Desktop.

Select an option

Save mmalolepszy/1869eab08e164fae5524cb8786a044c4 to your computer and use it in GitHub Desktop.
FSI output
Microsoft (R) F# Interactive version 14.0.23413.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> [<Measure>] type foot;;
[<Measure>]
type foot
> let radius (circleArea:float<'u^2>) = sqrt (circleArea/3.14);;
val radius : circleArea:float<'u ^ 2> -> float<'u>
> radius 314.0<foot>;;
val it : float<foot ^ (1/2)> = 10.0
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment