I was trying to implement a simple binary search using a purely functional approach, and after much hacking, googling and wikibooking, came up with this in Clojure.
--
If you have any questions or thoughts, don't hesitate to reach out. You can find me as @viksit on Twitter.