Jul-15-2018, 12:18 PM
Keep track of the recursion yourself. Have a stack (list) of iterators. Use
__next__
to advance the last (deepest) iterator. When that one is done, pop it off. When a new one is needed, append it on.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures