An interesting Scala nugget (Range contains instead of if)

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"