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