Instance Method

index(before:)

A value less than or equal to the number of elements in the collection.

Declaration

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

Discussion

Complexity: O(1) if the collection conforms to RandomAccessCollection; otherwise, O(n), where n is the length of the collection.