I believe I figured it out. Thanks for the help!
Code that works:
(define(proper a-ftn)
(cond
[(or(empty?(child-father a-ftn))
(empty?(child-mother a-ftn))
(empty? a-ftn))false]
[else(cond
[(or(symbol=?(child-eyes(child-mother a-ftn))'blue)
(symbol=?(child-eyes(child-father a-ftn))'blue))
true]
[else(or(proper(child-mother a-ftn))
(proper(child-father a-ftn)))])]))
On Oct 7, 10:15 pm, MyOMy Racket <
racketgr...@gmail.com> wrote:
> Let's try to run the program by hand, and see what will happen. Suppose Eva
> has gray eyes instead of blue.
>
> (proper (make-child Fred Eva 'Gustav 1988 'brown))
> = (cond
> [(symbol=? (child-eyes (make-child Carl Bettina 'Eva 1965 'gray)) 'blue)
> true]
> [else (proper Fred)])
> = (cond
> [(symbol=? 'gray 'blue) true]
> [else (proper Fred)])
> = (proper Fred)
>
> Now you see where the problem is, yes?
>
> Frodo
>
> 2010/10/7 kenny <
hege...@yahoo.com>