scala-collection-compat
scala-collection-compat copied to clipboard
makes some Scala 2.13 APIs (primarily collections, also some others) available on 2.11 and 2.12, to aid cross-building
This PR adds 2.13 collection compatible forwarders for scala 2.11 and scala 2.12, see #346. 2.11 has converters in traits WrapAsJava and WrapAsScala, while 2.12 has them in AsJavaConverters and...
for example: `mutable.Set.filterInPlace`
scalafix dependency:[email protected]:scala-collection-migrations:2.6.0 [error] (Compile / scalafix) scalafix.sbt.InvalidArgument: Unknown rule 'RoughlyMapValues' [This](https://github.com/natansil/greyhound-sbt/blob/f649b0ef0919816fb374dd14fa5c27ac604d492b/build.sbt#L1-L5) is how I setup my sbt.build file
Similar to #355
I inherited some Scala 2.11/12 code which is having difficulty compiling in Scala 2.13 despite the compatibility library. Simplified, it looks like this: ```scala import scala.collection.generic.CanBuildFrom import scala.language.higherKinds object Example...
Rewrite rule for `Map#mapValues` should call `.view` before calling `.mapValues` (H/T @joshlemer)
Scala 2.12: ``` val t: TraversableOnce[Int] = List(1,2,3) val tm = t.map(_ + 1) ``` migrating the above contrived example to Scala 2.13 (according to the @deprecated instructions) leads to:...
A simple source with `TravesableOnce` results in a strange `IterableOnceIterableOnce` identifier (the correct identifier is repeated twice): ```scala package com.github.ondrejspanel.scafi object TraversableOnce { def shuffle[T](random: scala.util.Random, src: TraversableOnce[T]): List[T] =...
https://github.com/scala/bug/issues/8234#issuecomment-816026779 Mentions existence of `SeqMap` which would be very terrific to use instead of `ListSet`/`ListMap`, however it's unavailability on 2.12 precludes usage in libraries!..