3 ms·
You can define a struct with a single field of type Double.
by slavapestov 8y ago
You can define a struct with a single field of type Double.
- dep_b 8y agoTrue. I think there was a Money cocoapod that used your trick. But you can’t do anything with them you would normally do with the base type unless you add a ton of logic. Also in F# you get the type Meter/Hour if you divide Meters by Hours. Which multiplied by an Hour value gives you the distance traveled at that speed in that time.