mr_ped Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
The FindBinary actually should return index of the searched value, in your example "0", or -1 if the value is not found.
So something's wrong if it does not work.
But the vector must be already sorted by that less predicate before calling it (as far as I can tell, Vector {1,2} is sorted, so that piece of code still looks fine).
Maybe I should start TheIDE a try it myself... (reluctant to do it and compile, I'm on very slow PC)