-
Recent Posts
Recent Comments
Archives
Categories
Meta
Tag Archives: units
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
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