Started to work on king threats
This commit is contained in:
9
Sources/Engine/Extensions/Set+Union.swift
Normal file
9
Sources/Engine/Extensions/Set+Union.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user