---
title: "index(after:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/enumeratedsequence/index(after:)"
---

# index(after:)

Returns the position immediately after the given index.

## Declaration

```swift
func index(after index: EnumeratedSequence<Base>.Index) -> EnumeratedSequence<Base>.Index
```

## Return Value

Return Value The index value immediately after i.

## Discussion

Discussion The successor of an index must be well defined. For an index i into a collection c, calling c.index(after: i) returns the same index every time.
