Files
swift-chess/Sources/Engine/Extensions/Set+Union.swift
2024-06-28 23:58:26 +02:00

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)
}
}