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

# subscript(_:)

Accesses the element at the given position.

## Declaration

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

## Overview

Overview Must never be called, since this collection is always empty.
