3 ms·
> The only case where it returns (None, None) are those when it detects non-monotonicity in your predicate (returning false when a lower input returned true). S
by leni536 2y ago
> The only case where it returns (None, None) are those when it detects non-monotonicity in your predicate (returning false when a lower input returned true). So if you know your predicate is monotonic, feel free to hit this case with a panic!("should never happen").
Empty range?
- edflsafoiewq 2y agoNo such thing, the range is inclusive of the l and r endpoints.