Category Archives: F#

More on F# Units

Another wonderful thing about units in F# is that you can specify conversions. Consider the following: [<Measure>] type s [<Measure>] type m [<Measure>] type v = m / s let v1 = 1<m> let v2 = 1<s> let v3 = … Continue reading

Posted in F# | Tagged | Leave a comment

F# Spec

This might be in one of the books on F# floating about, but if it is I never noticed it. This example is copied from the F# spec [<Measure>] type kg [<Measure>] type m [<Measure>] type s let gravityOnEarth = … Continue reading

Posted in F# | Tagged , | Leave a comment