The mutable Set has a method def +=(elem1: A, elem2: A, elems: A*): Set.this.type
but I can call this method with a single paramter:
val s = scala.collection.mutable.Set(1, 2)
s += 4
What method is actually called? There seems to be no overload for +=
with a single parameter. What is the intention of the above method signature?