On Mon Dec 11 16:52:25 2023 +0000, Esme Povirk wrote:
This approach is unnecessarily quadratic, since the caller will only ever retrieve these in order.
The function also looks broken to me in the general case. If you have a section with index 0 and length 3, and you search for index 1, it will reject the section because it checks that `1 <= 0`.