On Tue, Aug 08, 2006 at 02:30:39PM +0200, Marc Weber wrote:
> Is there a better way to do this?

In this case it is quite easy to separate the task into two smaller
ones:
- creating the tree with a desired shape
- numbering the nodes in post-order

The first task is naturally expressed without monads.

Best regards
Tomasz
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to