Contents

removeAll(where:)

Removes all the elements that satisfy the given predicate.

Declaration

mutating func removeAll(where shouldBeRemoved: (MarkupOrderedSet.Element) throws -> Bool) rethrows

Parameters

  • 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.

See Also

Removing elements