---
title: endIndex
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/slidingwindows/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: Int { get }
```

## See Also

### Inspecting the sliding window

- [input](createmlcomponents/slidingwindows/input.md)
- [length](createmlcomponents/slidingwindows/length.md)
- [startIndex](createmlcomponents/slidingwindows/startindex.md)
- [stride](createmlcomponents/slidingwindows/stride.md)
