Instance Method

index(before:)

Returns the position immediately before the given index.

Declaration

func index(before i: FlattenSequence<Base>.Index) -> FlattenSequence<Base>.Index
Available when Base conforms to BidirectionalCollection and Base.Element conforms to BidirectionalCollection.

Parameters

i

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

Return Value

The index value immediately before i.

Discussion

Relationships