IteratorComparableSelf<T extends Comparable<T>> extension

on

Methods

isSorted() bool

Available on RIterator<T>, provided by the IteratorComparableSelf extension

Checks if the elements of this iterator are sorted. That is, for each element a and its following element b, a <= b must hold. If the iterator yields exactly zero or one element, true is returned.
max() Option<T>

Available on RIterator<T>, provided by the IteratorComparableSelf extension

Returns the maximum element of an iterator.
min() Option<T>

Available on RIterator<T>, provided by the IteratorComparableSelf extension

Returns the minimum element of an iterator.