---
title: "formIndex(_:offsetBy:limitedBy:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/collection/formindex(_:offsetby:limitedby:)-6ovn"
---

# formIndex(_:offsetBy:limitedBy:)

## Declaration

```swift
func formIndex<T>(_ i: inout Self.Index, offsetBy n: T, limitedBy limit: Self.Index) -> Bool where T : BinaryInteger
```
