10 lines
205 B
Swift
10 lines
205 B
Swift
extension Set {
|
|
static func + (lhs: Set<Element>, rhs: Set<Element>) -> Set<Element> {
|
|
return lhs.union(rhs)
|
|
}
|
|
|
|
static func += (lhs: inout Set<Element>, rhs: Set<Element>) {
|
|
lhs.formUnion(rhs)
|
|
}
|
|
}
|