Instance Method (Default implementation)swift 6.0.3Swift

formSymmetricDifference(_:)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

mutating func formSymmetricDifference(_ other: Self)

Parameters

other

An option set.

This method is implemented as a ^ (bitwise XOR) operation on the two sets’ raw values.