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