Returns the position immediately after the given index.
Required.
SDK
- Xcode 9.3+
Framework
- Swift Standard Library
Declaration
func index(after i: Self.Index) -> Self.Index
Parameters
i
A valid index of the collection.
i
must be less thanend
.Index
Return Value
The index value immediately after i
.
Discussion
The successor of an index must be well defined. For an index i
into a collection c
, calling c
returns the same index every time.