Returns the position immediately before the given index.
Required.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
func index(before i: Self.Index) -> Self.Index
Parameters
iA valid index of the collection.
imust be greater thanstart.Index
Return Value
The index value immediately before i.