Intervals for Scala