---
title: "formIndex(after:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/int32/words-swift.struct/formindex(after:)"
---

# formIndex(after:)

Replaces the given index with its successor.

## Declaration

```swift
func formIndex(after i: inout Self.Index)
```

## Parameters

- `i`: A valid index of the collection. i must be less than endIndex.
