Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The result of a binary search is undefined if the input is not sorted.

How do you expect the compiler to statically guarantee that this property holds in all the cases you want to do a binary search?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: