endIndex
The “past the end” position—that is, the position one greater than the last valid subscript argument.
Declaration
var endIndex: Int { get }Discussion
If the collection is empty, endIndex is equal to startIndex.
The “past the end” position—that is, the position one greater than the last valid subscript argument.
var endIndex: Int { get }If the collection is empty, endIndex is equal to startIndex.