Instance Method

remove(_:)

Remove an integer from the IndexSet.

Declaration

@discardableResult mutating func remove(_ integer: IndexSet.Element) -> IndexSet.Element?

Relationships

From Protocol

See Also

Removing Elements

func remove(integersIn: Range<IndexSet.Element>)

Remove a range of integers from the IndexSet.

func remove(integersIn: ClosedRange<IndexSet.Element>)

Remove a range of integers from the IndexSet.

func removeAll()

Remove all values from the IndexSet.

func subtract(IndexSet)

Removes the elements of the given set from this set.

func subtracting(IndexSet) -> IndexSet

Returns a new set containing the elements of this set that do not occur in the given set.