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
importscala.concurrent._importscala.concurrent.ExecutionContext.globalimplicitvalec= global
Future.traverse(1 until 10)(a =>Future.unit)
// Cannot construct a collection of type scala.collection.immutable.AbstractSeq[Unit] with elements of type Unit based on a collection of type scala.collection.immutable.AbstractSeq[Int].
problem
There is no implicit CanBuildFrom in scope here when the range is exclusive, even though there is when the range is inclusive. I would expect we should be able to build something here, especially when we can in seemingly the same situation if we just do 1 to 10 instead of 1 until 10.
The text was updated successfully, but these errors were encountered:
reproduction steps
Using Scala 2.13.3,
problem
There is no implicit
CanBuildFrom
in scope here when the range is exclusive, even though there is when the range is inclusive. I would expect we should be able to build something here, especially when we can in seemingly the same situation if we just do1 to 10
instead of1 until 10
.The text was updated successfully, but these errors were encountered: