Instance Method (Default implementation)swift 6.1.2Swift

index(after:)

Returns the position immediately after the given index.

func index(after i: Self.Index) -> Self.Index

Parameters

i

A valid index of the collection. i must be less than endIndex.

Returns

The index value immediately after i.