DiscontiguousSlice

    A collection wrapper that provides access to the elements of a collection, indexed by a set of indices.

    iOS
    18.0+
    macOS
    15.0+
    tvOS
    18.0+
    visionOS
    2.0+
    watchOS
    11.0+
    struct DiscontiguousSlice<Base> where Base : Collection

    Citizens in Swift

    Instance members

    Citizens in Swift

    Conformances

    Instance members

    Instance features

    Citizens in Swift

    Instance members

    Citizens in Swift

    where Base:Collection

    Conformances

    Types

    Typealiases

    Instance members

    Instance features

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Citizens in Swift

    where Base:Collection, Base:Sendable, Base.Index:Sendable

    Conformances

    Citizens in Swift

    where Base:Collection, Base.Element:Hashable

    Conformances

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    Instance members

    Citizens in Swift

    where Base:Collection, Base.Element:Equatable

    Conformances

    Type members

    Type features