All pastes #221407 Raw Edit

Something

public text v1 · immutable
#221407 ·published 2006-10-25 17:55 UTC
rendered paste body
;;   Question 1

(define-struct node (ssn name left right))

(define (contains-bt soc tree)
  (cond [(boolean? tree) false]
        [(= soc (node-ssn)) true]
        [else (or (contains-bt soc (node-left))
                  (contains-bt soc (node-right)))]))

[(= soc (node-ssn)) true] 

node-ssn: this selector expects 1 argument, here it is provided 0 arguments