Trees: Is This a Binary Search Tree?

  • + 0 comments

    it took me a bit to realize that +[''] is how you avoid an index error and create the replacement for the conditional to handle both function() and function(arg[1]) as appropriate. Simple and smart! Thanks for posting this.