Suppose I have
val dirty = List(\"a\", \"b\", \"a\", \"c\")
Is there a list operation that returns \"a\", \"b\", \"c\"
scala.collection.immutable.List now has a .distinct method.
scala.collection.immutable.List
.distinct
So calling dirty.distinct is now possible without converting to a Set or Seq.
dirty.distinct
Set
Seq