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

# subscript(_:)

Accesses the subsequence bounded by the given range.

## Declaration

```swift
subscript(bounds: Range<Range<Bound>.Index>) -> Range<Bound> { get }
```

## Parameters

- `bounds`: A range of the range’s indices. The upper and lower bounds of the bounds range must be valid indices of the collection.
