Almost each Scala version changes the way collection conversion happens in a non-backward compatible way. Is there a better solution that is version agnostic and does not depend on Scala distribution?
I don't mind using some 3rd party libraries.
Almost each Scala version changes the way collection conversion happens in a non-backward compatible way. Is there a better solution that is version agnostic and does not depend on Scala distribution?
I don't mind using some 3rd party libraries.
Copyright © 2021 Jogjafile Inc.
Just use the scala-collections-compat library and then you can use
import scala.jdk.CollectionConverters._on Scala2.11,2.12&2.13.