Closed tamird closed 6 years ago
I've changed this to not return nil
if nil
is being searched for. This is the same behaviour as built-in sorting methods in ruby.
@kanwei could you give this a glance?
It's seem all good. This needs to merge in master asap since binary search should return index of given item / element of array.
Rebased.
In response to #15, should address the contention therein. Also a bit of a rewrite so that the code is a bit more idiomatic.
Closes #15.