scala/scala — pull request #1657 by jedesah (2012-11-22 06:07:56+00:00)
Title: SI-6415 avoid early evaluation in some Stream's methods

The lengthCompare method in LinearSeqOptimized was looking one step further
than it needed too in order to give the correct result, which was creating some
unwanted side effects related to Streams.

https://issues.scala-lang.org/browse/SI-6415

Review by @axel22