IteratorComparableSelf<T extends Comparable<T>> extension

on

Methods

isSorted() bool
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>
Returns the maximum element of an iterator.
min() Option<T>
Returns the minimum element of an iterator.