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

# subscript(_:)

Accesses the element at the specified position.

## Declaration

```swift
subscript(index: OutputSpan<Element>.Index) -> Element { get set }
```

## Parameters

- `index`: A valid index into this span.

## Overview

Overview note: O(1)
