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

# index(after:)

Returns the position immediately after the given index.

## Declaration

```swift
borrowing func index(after i: InlineArray<count, Element>.Index) -> InlineArray<count, Element>.Index
```

## Parameters

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

## Return Value

Return Value The index immediately after i.

## Discussion

Discussion note: O(1)
