Created
October 25, 2012 02:39
-
-
Save ehaliewicz/3950145 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun contains (self value) | |
(labels ((recur (value current) | |
(if (null current) | |
nil | |
(cond | |
((= value current.value) t) | |
((< value current.value) (recur value current.left)) | |
(t (recur value current.right)))))) | |
(recur value self.root))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment