Created
October 2, 2011 23:30
-
-
Save soc/1258102 to your computer and use it in GitHub Desktop.
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
val mass: Mass[Double] = kg[Double] * 4.0 | |
val length: Length[Int] = m[Int] * 5 | |
val time: Time[Int] = s[Int] | |
val temperature: Temperature[BigDecimal] = k[BigDecimal] * BigDecimal("22.22") | |
val speed = length / time | |
val area = length * length | |
val volume: Volume[Int] = m[Int] * m[Int] * m[Int] * 23 | |
val accel = m[Double] * 10.0 / (s[Double] * s[Double]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment