Re: [Tutor] not understanding a recursion example

2011-01-21 Thread Bill Allen
Peter, Thank you very much for the explanation. I understand this much better now. You are correct, the implementation you show is easier for me to understand. --Bill On Fri, Jan 21, 2011 at 03:43, Peter Otten <__pete...@web.de> wrote: > Bill Allen wrote: > > > I am not understand

Re: [Tutor] not understanding a recursion example

2011-01-21 Thread Peter Otten
Bill Allen wrote: > I am not understanding the following code (I did not write it). It > demonstrates walking a tree-like data structure using recursion. It does > run and produces reasonable output. I particularly do not understand the > "traverse.level" statements. Can anyone give me an idea

[Tutor] not understanding a recursion example

2011-01-20 Thread Bill Allen
I am not understanding the following code (I did not write it). It demonstrates walking a tree-like data structure using recursion. It does run and produces reasonable output. I particularly do not understand the "traverse.level" statements. Can anyone give me an idea how this is working and th