The position of the first element in a nonempty array.
SDK
- Xcode 6.3+
Framework
- Swift Standard Library
Declaration
var startIndex: Int { get }
Discussion
Array instances are not always indexed from zero. Use start and end as the bounds for any element access, instead of 0 and count.
If the array is empty, start is equal to end.