According to the Scala documentation for the Range.end method Range.end it returns the "exclusive end of the range." So why does it return the same value for the to and until notation? For instance:
Welcome to Scala version 2.9.2 (Java HotSpot(TM) Server VM, Java 1.7.0). Type in expressions to have them evaluated. Type :help for more information. scala> (1 to 10).end res0: Int = 10 scala> (1 until 10).end res1: Int = 10
Not worth res0 == 11 ?
source share