index(before:)
Returns the position immediately before the given index.
Declaration
func index(before index: Int) -> IntParameters
- index:
A valid index of the array.
imust be greater thanstartIndex.
Return Value
The index immediately preceding i.