struct BidirectionalReverseView<T : CollectionType where T.Index : BidirectionalIndexType>

The lazy CollectionType returned by reverse(c) where c is a CollectionType with an Index conforming to BidirectionalIndexType

Inheritance CollectionType, SequenceType, _CollectionType, _SequenceType, _Sequence_Type View Protocol Hierarchy →
Associated Types
Index = ReverseBidirectionalIndex<T.Index>

A type that represents a valid position in the collection.

Valid indices consist of the position of every element and a "past the end" position that's not valid for use as a subscript.

Generator = IndexingGenerator<BidirectionalReverseView<T>>

A type whose instances can produce the elements of this sequence, in order.

Element = T.Generator.Element

Type alias inferred.

Index = Index

Type alias inferred.

SubSequence = Slice<BidirectionalReverseView<T>>

Type alias inferred.

Import import Swift

Instance Variables

var endIndex: Index

The collection's "past the end" position.

endIndex is not a valid argument to subscript, and is always reachable from startIndex by zero or more applications of successor().


var endIndex: Index { get }
var startIndex: Index

The position of the first element in a non-empty collection.

Identical to endIndex in an empty collection.


var startIndex: Index { get }


subscript(_: Index)


subscript(position: Index) -> T.Generator.Element { get }

Instance Methods

func generate()

Return a generator over the elements of this sequence.

Complexity: O(1)


func generate() -> IndexingGenerator<BidirectionalReverseView<T>>