Contents

isSubset(of:)

Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set.

Declaration

func isSubset(of otherSet: Set<AnyHashable>) -> Bool

Parameters

  • otherSet:

    The set with which to compare the receiving set.

Return Value

true if every object in the receiving set is also present in otherSet, otherwise false.

Discussion

Object equality is tested using isEqual:.

See Also

Comparing Sets