---
title: "subscript(_:)"
framework: foundation
role: symbol
role_heading: Instance Subscript
path: "foundation/indexpath/subscript(_:)-4pgu1"
---

# subscript(_:)

Accesses a contiguous subrange of the index path’s nodes.

## Declaration

```swift
subscript(range: Range<IndexPath.Index>) -> IndexPath { get set }
```

## See Also

### Accessing Nodes

- [subscript(_:)](foundation/indexpath/subscript(_:)-6p6ul.md)
