bsearchGreaterThan method
Assuming the list is sorted, locate leftmost element greater than x
.
If the element is found, the index of element is returned. If not found, -1 is returned.
Implementation
int bsearchGreaterThan(E x, {Comparator<E>? compare}) {
final i = this.bisectRight(x, compare: compare);
if (i != this.length) {
return i;
}
return -1;
}