Instance Methodswift 6.0.1Swift

    union(_:)

    Returns a new range set containing the contents of both this set and the given set.

    iOS
    18.0+
    macOS
    15.0+
    tvOS
    18.0+
    visionOS
    2.0+
    watchOS
    11.0+
    func union(_ other: RangeSet<Bound>) -> RangeSet<Bound>

    Parameters

    other

    The range set to merge with this one.

    Returns

    A new range set.

    Other members in extension

    Types

    • struct Ranges

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

    Type members

    Instance members