in reply to Re: cartesian product preserving order
in thread cartesian product preserving order

glob is perhaps the prettiest solution, but it isn't recommended for large sets, since all combinations will be generated before any are returned.

So does the comb you wrote.