I have this:

(define (related? a1 a2)
  (if (equal? a1 a2)
      true
      (related? (member (rest ("proc that calls list" a1)) (rest ("proc that 
calls list" a2)))
         (member a1 ("proc that calls list" a2))))))


a1 and a2 are part of a binary search tree and I have another function that 
creates a list from the elements of the tree

hence the "proc that calls list"


For some reason, whatever input I'm putting into a1 and a2 is returning only 
true, even when I know the answer is suppose to be false

Can anyone guide me onto what's going wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/71055333-b9b3-4b4e-9142-3b9c6e66e0e3%40googlegroups.com.

Reply via email to