Contents

startIndex

The position of the first element in a nonempty collection.

Declaration

@MainActor @preconcurrency var startIndex: Int { get }

Discussion

If the collection is empty, startIndex is equal to endIndex.

See Also

Manipulating indices