Skip to content

Instantly share code, notes, and snippets.

@soc
Created October 2, 2011 23:30
Show Gist options
  • Save soc/1258102 to your computer and use it in GitHub Desktop.
Save soc/1258102 to your computer and use it in GitHub Desktop.
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