struct ReverseBidirectionalIndex<I : BidirectionalIndexType>

A wrapper for a BidirectionalIndexType that reverses its direction of traversal

Inheritance BidirectionalIndexType, Equatable, ForwardIndexType, _BidirectionalIndexType, _ForwardIndexType, _Incrementable View Protocol Hierarchy →
Import import Swift

Instance Methods

func predecessor()

Returns the previous consecutive value before self.

Requires: the previous value is representable.


func predecessor() -> ReverseBidirectionalIndex<I>
func successor()

Returns the next consecutive value after self.

Requires: the next value is representable.


func successor() -> ReverseBidirectionalIndex<I>