var jetSet = Set("Boeing", "Airbus") jetSet += "Lear"
In the above code snippet, set "jetSet" is an immutable set, and the second statement creates a new set with values from "jetSet" and a string "Lear", and then reassigns that new set to variable "jetSet".
Now if we consider the operation "+=" is actually a method call on a set instance "jetSet", with one string parameter, I dont understand how a class method call can change the "jetSet" variable, since its being called on that same variable and it is not an assignment statement either!!!