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

# subscript(_:)

Accesses the member at the given position.

## Declaration

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

## See Also

### Finding Elements

- [contains(where:)](swift/set/contains(where:).md)
- [allSatisfy(_:)](swift/set/allsatisfy(_:).md)
- [first(where:)](swift/set/first(where:).md)
- [firstIndex(of:)](swift/set/firstindex(of:).md)
- [firstIndex(where:)](swift/set/firstindex(where:).md)
- [index(of:)](swift/set/index(of:).md)
- [min()](swift/set/min().md)
- [min(by:)](swift/set/min(by:).md)
- [max()](swift/set/max().md)
- [max(by:)](swift/set/max(by:).md)
