---
title: startIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/set/startindex
---

# startIndex

The starting position for iterating members of the set.

## Declaration

```swift
var startIndex: Set<Element>.Index { get }
```

## Discussion

Discussion If the set is empty, startIndex is equal to endIndex.
