Subject: | Consider return the bracketing values upon a failed search |
Thanks for your module; I'm sick of writing my own binary search routines.
One of the reasons I do is that often I need to know the values which
bracket my requested value if it does not match. (Uses would be for
interpolation of data, insertion of new data into a list, etc) Typical
binary search routines simply indicate failure.
Would you consider adding this feature to your code?
Thanks!
Diab