isStrictlyOrdered method
Tests if the specified Iterable is in strict increasing order.
Implementation
bool isStrictlyOrdered(Iterable<T> iterable) {
final iterator = iterable.iterator;
if (iterator.moveNext()) {
var previous = iterator.current;
while (iterator.moveNext()) {
if (this(previous, iterator.current) >= 0) {
return false;
}
previous = iterator.current;
}
}
return true;
}