By Alvin Alexander. Last updated: February 5, 2014
I don’t know how efficient this is, but it’s an interesting nugget of Scala code:
if (90 to 100).contains(score) grade = "A"
I don’t know how efficient this is, but it’s an interesting nugget of Scala code:
if (90 to 100).contains(score) grade = "A"