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

# startIndex

The position of the first element in a nonempty collection.

## Declaration

```swift
var startIndex: KeyValuePairs<Key, Value>.Index { get }
```

## Discussion

Discussion If the KeyValuePairs instance is empty, startIndex is equal to endIndex.
