Considering this http://code.activestate.com/recipes/231503/ Is there a similar way (using generators) to parse trees using depth-first?
let's say we have the list:
l = [1,[2,4],3]
the output should be:
1,2,4,3
the actual breadth-first output is:
1,3,2,4
let's say we have the list:
l = [1,[2,4],3]
the output should be:
1,2,4,3
the actual breadth-first output is:
1,3,2,4