Instance Methodswift 6.0.1Swift

    remove(_:within:)

    Removes the range that contains only the specified index from the range set.

    iOS
    18.0+
    macOS
    15.0+
    tvOS
    18.0+
    visionOS
    2.0+
    watchOS
    11.0+
    mutating func remove<C>(_ index: Bound, within collection: C) where Bound == C.Index, C : Collection

    Parameters

    index

    The index to remove from the range set. index must be a valid index of collection that isn’t the collection’s endIndex.

    collection

    The collection that contains index.

    Other members in extension

    Types

    • struct Ranges

      A collection of the ranges that make up a range set.

    Type members

    Instance members