Skip to content

Conversation

@retronym
Copy link
Owner

Restoring the 2.12 behaviour:

% scala --scala-version 2.12.17
Welcome to Scala 2.12.17 (OpenJDK 64-Bit Server VM, Java 17.0.13).
Type in expressions for evaluation. Or try :help.

scala> Iterator.continually(1)
res0: Iterator[Int] = <iterator>

scala> Iterator.continually(1).toIterable
res1: Iterable[Int] = Stream(1, ?)

Restoring the 2.12 behaviour:

```
% scala --scala-version 2.12.17
Welcome to Scala 2.12.17 (OpenJDK 64-Bit Server VM, Java 17.0.13).
Type in expressions for evaluation. Or try :help.

scala> Iterator.continually(1)
res0: Iterator[Int] = <iterator>

scala> Iterator.continually(1).toIterable
res1: Iterable[Int] = Stream(1, ?)
```
@retronym
Copy link
Owner Author

 ./build/quick/bin/scala
Welcome to Scala 2.13.16-20250213-102610-b5dfccb (Java HotSpot(TM) 64-Bit Server VM, Java 21.0.5).
Type in expressions for evaluation. Or try :help.

scala> Iterable.from(Iterator.continually(1))
val res0: Iterable[Int] = LazyList(<not computed>)

scala>

@retronym retronym closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants