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

# index(after:)

Returns the index immediately after an element index.

## Declaration

```swift
func index(after i: Int) -> Int
```

## Parameters

- `i`: A valid index to an element in the classification distribution.

## See Also

### Getting the index

- [index(before:)](createmlcomponents/classificationdistribution/index(before:).md)
