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

# subscript(unchecked:)

Accesses the element at the specified position in the Span.

## Declaration

```swift
subscript(unchecked position: Span<Element>.Index) -> Element { get }
```

## Parameters

- `position`: The offset of the element to access. position must be greater or equal to zero, and less than count.

## Overview

Overview This subscript does not validate position. Using this subscript with an invalid position results in undefined behaviour. note: O(1)
