peekable method

  1. @override
PeekableRIterator<T> peekable()

Creates an iterator which can use the "peek" to look at the next element of the iterator without consuming it.

Implementation

@override
PeekableRIterator<T> peekable() => PeekableRIterator(this);