---
title: "subscript(unchecked:)"
framework: swift
role: symbol
role_heading: Instance Subscript
path: "swift/inlinearray/subscript(unchecked:)"
---

# subscript(unchecked:)

Accesses the element at the specified position.

## Declaration

```swift
subscript(unchecked i: InlineArray<count, Element>.Index) -> Element { get set }
```

## Parameters

- `i`: The position of the element to access. i must be a valid index of the array that is not equal to the endIndex property.

## Overview

Overview warning: This subscript trades safety for performance. Using an invalid index results in undefined behavior. note: O(1)
