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: Repeated<Element>.Index { get }

Discussion

In a Repeated collection, endIndex is always equal to count. If the collection is empty, endIndex is equal to startIndex.