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

# endIndex

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

## Declaration

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

## Discussion

Discussion In a CollectionOfOne instance, endIndex is always 1.
