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