IteratorComparableSelf<T extends Comparable<T> > extension
- on
-
- RIterator<
T>
- RIterator<
Methods
-
isSorted(
) → bool -
Available on RIterator<
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.T> , provided by the IteratorComparableSelf extension -
max(
) → Option< T> -
Available on RIterator<
Returns the maximum element of an iterator.T> , provided by the IteratorComparableSelf extension -
min(
) → Option< T> -
Available on RIterator<
Returns the minimum element of an iterator.T> , provided by the IteratorComparableSelf extension