RandomAccessCollection
public extension RandomAccessCollection
-
Returns the position immediately after the given index. Returns
nil
if index is out of bounds.Declaration
Swift
@inlinable func existingIndex(after i: Index) -> Index?
Parameters
i
A valid index of the collection.
Return Value
The index immediately after
i
.