Inserts the given element into the set.
If newMember is not contained in the set but subsumes current members
of the set, the subsumed members are returned.
var options: ShippingOptions = [.secondDay, .priority]
let replaced = options.update(with: .express)
print(replaced == .secondDay)
// Prints "true"
Inserts the given element into the set.
If
newMemberis not contained in the set but subsumes current membersof the set, the subsumed members are returned.
var options: ShippingOptions = [.secondDay, .priority]
let replaced = options.update(with: .express)
print(replaced == .secondDay)
// Prints "true"