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

# startIndex

The position of the first element in a non-empty collection.

## Declaration

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

## Discussion

Discussion In an empty collection, startIndex == endIndex.
