removeAll(where:)
Removes all the elements that satisfy the given predicate.
Declaration
mutating func removeAll(where shouldBeRemoved: (MarkupOrderedSet.Element) throws -> Bool) rethrowsParameters
- shouldBeRemoved:
A closure that takes an element of the set as its argument and returns a Boolean value indicating whether to remove the element from the set.