---
title: endIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/repeated/endindex
---

# endIndex

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

## Declaration

```swift
var endIndex: Repeated<Element>.Index { get }
```

## Discussion

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