Andy Knowles wrote: [some code] There are at least two bugs in your code. Stays the opApply as easy if the visits must be inorder? > The call stack stores our stack implicitly. Would this be true in any case of enumeration of the tree, asuming that the stored structure has indeed the property of a tree?