We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2614aa8 + 20421f5 commit c3b517fCopy full SHA for c3b517f
src/library/scala/collection/immutable/LazyList.scala
@@ -839,7 +839,7 @@ object Stream extends LazyListFactory[Stream] {
839
/** Construct a Stream consisting of a given first element followed by elements
840
* from another Stream.
841
*/
842
- def #:: [B >: A](elem: => B): Stream[B] = newCons(elem, l())
+ def #:: [B >: A](elem: B): Stream[B] = new Cons(elem, l())
843
/** Construct a Stream consisting of the concatenation of the given Stream and
844
* another Stream.
845
0 commit comments