Open
Description
SortedSet.map
in 2.12 returns a Set
if it cannot find an implicit Ordering. To keep this behavior in 2.13, you can use unsorted
. However, this method is not available in 2.12.
case class A(v: Int)
val set = collection.immutable.SortedSet(1)
set.map(x => A(x))
// Set(A(1)): Set[A] in 2.12
// error: No implicit Ordering defined for A. in 2.13