scheme determine a string inside a tree list or not
问题 Here's my data definition, (define-struct leaf ()) ;; interpretation: represents a leaf on a BT, a node with no children (define-struct node (word left right)) ;; interpretation: represents a node on a BT with a word, a left and a right ;; subtree ;; A BinaryTree (BT) is one of ;; - (make-leaf) ;; - (make-node String BT BT) ;; bt-has? : BT String -> Boolean ;; given a BT tree and a String w and returns true if w is in the tree ;; and false otherwise (define (bt-has? tree w) (cond [(leaf? tree