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

# startIndex

The position of the first element in a nonempty array.

## Declaration

```swift
var startIndex: InlineArray<count, Element>.Index { get }
```

## Discussion

Discussion If the array is empty, startIndex is equal to endIndex. note: O(1)
