In Scala 2.13 and Scala 3, the classes immutable.Set1, immutable.Set2, immutable.Set3, and immutable.Set4 implement StrictOptimizedIterableOps but not StrictOptimizedSetOps. The latter trait, defined in the same file as the four set classes, only adds an optimized version of concat.
This version returns this
if the added elements are already included which is a welcome optimization.
So, shouldn’t these implementations of immutable.Set also implement StrictOptimizedSetOps like the other implementations?