Instance Propertyswift 6.0.1Swift
endIndex
The range’s “past the end” position—that is, the position one greater than the last valid subscript argument.
var endIndex: ClosedRange<Bound>.Index { get }
Other members in extension
Types
Typealiases
Type members
init(Range<Bound>
) Creates an instance equivalent to the given
Range
.
Show obsolete interfaces (1)
Hide obsolete interfaces
init(ClosedRange<Bound>
) Now that Range is conditionally a collection when Bound: Strideable, CountableRange is no longer needed. This is a deprecated initializer for any remaining uses of Range(countableRange).
Instance members
var startIndex: ClosedRange<Bound>.Index
The position of the first element in the range.
subscript(Range<ClosedRange<Bound>.Index>
) -> Slice<ClosedRange<Bound>> subscript(ClosedRange<Bound>.Index
) -> Bound Accesses the element at specified position.
func distance(from: ClosedRange<Bound>.Index, to: ClosedRange<Bound>.Index
) -> Int func index(ClosedRange<Bound>.Index, offsetBy: Int
) -> ClosedRange<Bound>.Index func index(after: ClosedRange<Bound>.Index
) -> ClosedRange<Bound>.Index func index(before: ClosedRange<Bound>.Index
) -> ClosedRange<Bound>.Index