You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Scala version 2.10.1 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_17).
Type in expressions to have them evaluated.
Type:help for more information.
scala>valrange=1000 until 1000
range: scala.collection.immutable.Range=Range()
scala> range.max
java.util.NoSuchElementException
scala> range.min
res1:Int=1000
scala> range.par.min
java.util.NoSuchElementException:None.get
scala> range.par.max
java.util.NoSuchElementException:None.get
The text was updated successfully, but these errors were encountered:
@vigdorchik said:
Symmetric problem with Range.max:
scala> val r = new Range(10,10, -1)
r: scala.collection.immutable.Range = Range()
scala> r.min
java.util.NoSuchElementException
scala> r.max
res1: Int = 10
The text was updated successfully, but these errors were encountered: