Contents

removeElement(for:)

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

Declaration

@discardableResult mutating func removeElement<T>(for id: MarkupID<T>) -> T? where T : Markup

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