startIndex
The position of the first element in a nonempty array.
Declaration
var startIndex: Int { get }Discussion
ArraySlice instances are not always indexed from zero. Use startIndex and endIndex as the bounds for any element access, instead of 0 and count.
If the array is empty, startIndex is equal to endIndex.