From: Handy Gandy Date: 2010-09-14T22:55:12+09:00 Subject: Iterate over a cartesian product. I have an array of N arrays A_i: [A_1,A_2,...,A_N]. I want to iterate over the cartesian product A_1xA_2...xA_N. Is there a simple way of doing this without specifying N?