Instance Method

index(before:)

Returns the position immediately after the given index.

Declaration

func index(before i: Int) -> Int

Parameters

i

A valid index of the collection. i must be greater than startIndex.

Return Value

The index value immediately before i.