Instance Subscriptswift 6.0.1Swift
subscript(_:)
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
subscript(bounds: Range<DiscontiguousSlice<Base>.Index>) -> DiscontiguousSlice<Base> { get }
Other members in extension
Types
struct Index
A position in a
DiscontiguousSlice
.
Typealiases
Instance members
var count: Int
var description: String
var endIndex: DiscontiguousSlice<Base>.Index
var isEmpty: Bool
var startIndex: DiscontiguousSlice<Base>.Index
subscript(DiscontiguousSlice<Base>.Index
) -> Base.Element func distance(from: DiscontiguousSlice<Base>.Index, to: DiscontiguousSlice<Base>.Index
) -> Int func index(after: DiscontiguousSlice<Base>.Index
) -> DiscontiguousSlice<Base>.Index