scala code example
Example 1: scalar
I know this isn't computing but whatever,
A scalar is a physical quantity without a direction, it only has a magnitude.
Examples include:
1.) Volume
2.) Density
3.) Energy
4.) Mass
5.) Time (well enless we can find a way to go back in time this stays a scalar)
Example 2: scala tutorial
val x = if (a < b) a else b