Instance Method

index(before:)

Returns the position immediately before the given index.

Required. Default implementation provided.

Declaration

override func index(before i: Self.Index) -> Self.Index

Parameters

i

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

Return Value

The index value immediately before i.

Default Implementations

RandomAccessCollection Implementations

func index(before: Self.Index) -> Self.Index

Returns the position immediately after the given index.