Set
extension Set
-
Removes all the elements that satisfy
predicatefromself.Declaration
Swift
public mutating func removeAll(where predicate: (Element) throws -> Bool) rethrows -
Returns a set containing the elements in
selfandnewElement.Declaration
Swift
public func inserting(_ newElement: Element) -> Set<Element>
View on GitHub