[plt-scheme] Help: I want to travel a binary tree?

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Tue Jul 31 10:56:42 EDT 2007

Why don't you define a tree like this

(1 (2 (4 () ()) (5 () ())) (3 (6 () ()) (7 () ()))

?

--Hans



Op 31/7/2007 schreef "Zeng Fucen" <zengfucen at gmail.com>:

>I'm a scheme novice,
>
>I want to travel a binary tree, how to ? (depth first)
>
>Thanks for your tips , first!
>
>I define a tree like this:  (1 (2 4 5) (3 6 7))
>
>_________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.