Contents

removeElement(for:)

Removes the associated element for the given id from the set.

Declaration

@discardableResult mutating func removeElement(for id: MarkupOrderedSet.ElementID) -> MarkupOrderedSet.Element?

Parameters

  • id:

    The id of the element to remove.

Return Value

The associated element for id if the set contains id; otherwise, nil.

See Also

Removing elements