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 ccb00b4 + 3d54373 commit 16c07f4Copy full SHA for 16c07f4
library/src/scala/collection/immutable/LazyList.scala
@@ -1117,7 +1117,7 @@ object LazyList extends SeqFactory[LazyList] {
1117
/** Construct a LazyList consisting of a given first element followed by elements
1118
* from another LazyList.
1119
*/
1120
- def #:: [B >: A](elem: => B): LazyList[B] = newLL(sCons(elem, l()))
+ def #:: [B >: A](elem: => B): LazyList[B] = newLL(sCons(elem, newLL(l().state)))
1121
/** Construct a LazyList consisting of the concatenation of the given LazyList and
1122
* another LazyList.
1123
0 commit comments