You are viewing a single comment's thread. Return to all comments →
Why do you yield inorder(root)? Does using yield make it run only once? or does it not initialize stack back to  but instead continues from where it last stopped?
Yield means that it returns the current state and then continues from where it last stopped when its called.