I\'m interested in performing a Cartesian product on n arrays. I can write the code if I know the number of arrays ahead of time. For example, given 2 arrays:
You can use recursion instead of iteration - but watch out - StackOverflowException may occur.