Contents

remove(at:)

Removes and returns the element at the specified position.

Declaration

@discardableResult mutating func remove(at index: Int) -> MarkupOrderedSet.Element

Parameters

  • index:

    The position of the element to remove. index must be a valid index of the collection that is not equal to the collection’s end index.

Return Value

The removed element.

Discussion

The operation moves all elements following the specified position to close the resulting gap.

See Also

Removing elements