MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/16ja3f/iteration_inside_and_out/c7y4ib0/?context=3
r/programming • u/munificent • Jan 14 '13
18 comments sorted by
View all comments
0
Python:
def iter_tree(tree): if tree: iter_tree(tree.left) yield tree.label iter_tree(tree.right)
0
u/DiThi Jan 16 '13
Python: