I’m getting the warning that "method values in trait MapLike has changed semantics in version 2.8.0: values returns Iterable[V] rather than Iterator[V]".
So I thought I’d spell it out:
val things: scala.collection.immutable.IndexedSeq[SomeThing] = ...
val x: Iterable[scala.collection.immutable.IndexedSeq[SomeThing]] =
things.groupBy(thing => thing.id_thing).values
but I still get the warning (on “values” in the third line).
I found a way to solve my immediate problem by using “valuesIterator” instead of “values” but I’d still like to understand why the warning remains in the above code.