Returns the position immediately after the given index.
SDK
- Xcode 11.0+
Framework
- Swift Standard Library
Declaration
func index(after index: Collection Difference<ChangeElement>.Index) -> Collection Difference<ChangeElement>.Index
Parameters
iA valid index of the collection.
imust 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.
Note
This documentation comment was inherited from Collection.