Mar-16-2022, 02:31 AM
i have an algorithm i want to implement. it produces a sequence of number pairs in some order, hence a generator seems to be the way to go. a variant of the algorithm produces the number pairs in a special order i want. this variant is also recursive. how would you do recursion as a generator?