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
vals=Stream.from(1)
s.take(2).foreach(_ => ())
println(s) // prints Stream(1, 1, ?) (should be Stream(1, 2, ?), as it is in Scala 2.11.5)vals=Stream.from(1)
s.take(2).foreach(_ => ())
s.tail.head // prints 2, which is correct
Tabrez Iqbal (tabrez) said (edited on Mar 13, 2015 1:54:24 AM UTC):
A Scala community member on #scala/freenode told me it works fine on Scala 2.10 and Scala 2.11.5, probably they made a mistake about 2.11.5 version. I checked on Simply Scala and I was getting the expected correct result. (http://www.simplyscala.com/)
A larger example: https://gist.github.com/tabrez/810d82308ff515de7bdc
Let me know if I need to do any corrections or if this is a duplicate(searched but found no similar issue reported).
The text was updated successfully, but these errors were encountered: