isEqual(to:)
Compares the receiving set to another set.
Declaration
func isEqual(to otherSet: Set<AnyHashable>) -> BoolParameters
- otherSet:
The set with which to compare the receiving set.
Return Value
true if the contents of otherSet are equal to the contents of the receiving set, otherwise false.
Discussion
Two sets have equal contents if they each have the same number of members and if each member of one set is present in the other. Object equality is tested using isEqual:.