Instance Property

endIndex

The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument.

Declaration

var endIndex: Base.Index { get }
Available when Base conforms to Collection.

Discussion

endIndex is always reachable from startIndex by zero or more applications of index(after:).