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