Contents

index(after:)

Returns the position immediately after the given index.

Declaration

@MainActor @preconcurrency func index(after i: Int) -> Int

Parameters

  • i:

    A valid index of the collection. Use a value less than Endindex.

Return Value

The index value immediately after i.

See Also

Manipulating indices