<!--
{
  "availability" : [
    "iOS: 12.2.0 -",
    "iPadOS: 12.2.0 -",
    "macCatalyst: 12.2.0 -",
    "macOS: 10.14.4 -",
    "tvOS: 12.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Span/subscript(unchecked:)-2no6f",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s4SpanVss15BitwiseCopyableRzlE9uncheckedxSi_tcip"
  },
  "title" : "subscript(unchecked:)"
}
-->

# subscript(unchecked:)

Accesses the element at the specified index in the `Span`.

```
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

This subscript does not validate `position`. Using this subscript
with an invalid `position` results in undefined behaviour.

> Complexity: O(1)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)