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

# subscript(_:)

Accesses the element at the specified index.

## Declaration

```swift
subscript(index: Int) -> Int { get set }
```

## Parameters

- `index`: The index of the element to access. index must be in the range 0..<scalarCount.
