indexOfGT<T extends Comparable<T> > function
Locate leftmost value greater than x
Implementation
@Deprecated('Use List extension methods') // since 2021-11
int? indexOfGT<T extends Comparable<T>>(List<T> a, T x,
{bool dontPanic = false}) {
final i = bisect_right(a, x);
if (i != a.length) return i;
if (dontPanic) {
return null;
} else {
throw ItemNotFoundError();
}
}