3rd-Eden/node-bisection — pull request #5 by jinglongyang (2014-06-09 18:44:30+00:00)
Title: should return the value if the value exists in the sorted array

Should bisection return the value's index if the value exists in the sorted array? I encountered the issue when I try to share some data between Nodejs app and Java via Memcache. There are some certain mount cache miss due to this issue. Java is using the value's index but Nodejs is using the values's index+1 to find a node server.

Have another question, does the method left need to be changed, if you plan to merge the fix?

Thank you!