Returns a new set with the elements that are common to both this set and the given set.
Required. Default implementation provided.
Swift Standard Library
A set of the same type as the current set.
A new set.
In the following example, the bothNeighborsAndEmployees set is made up of the elements that are in both the employees and neighbors sets. Elements that are in only one or the other are left out of the result of the intersection.