title: Get all possible unique combinations of values from multiple lists in ColdFusion
body: <p>Here's one of those ColdFusion things that seems like it should be so easy... but I'm not finding the easy path.</p>
  
  <p>I have an array of lists.
  The array could be any size, and the length of each list can be any size.
  (this can be manipulated into a multi-dimensional array, whatever... the point is, i have a list of lists)</p>
  
  <p>For example</p>
  
  <ol>
  <li><p>129,128,127</p></li>
  <li><p>130,131,132</p></li>
  <li><p>135,133,134</p></li>
  <li><p>137,138,136</p></li>
  <li><p>140,139</p></li>
  <li><p>141,142</p></li>
  </ol>
  
  <p>Or a short version... it can vary</p>
  
  <ol>
  <li><p>13,14,15</p></li>
  <li><p>11,12</p></li>
  </ol>
  
  <p>What I need is an array, query or some other data structure
  containing all the possible unique combinations, taking one from each list in order ... so for the short version, there would be 6 unique combinations. For the first longer example, we would have 3*3*3*3*2*2 = 324 unique combinations.</p>
  
  <p>Counting them is easy... but what's the best way get the actual combinations in a structured format? 
  Must be missing something simple... I've been very close for hours now!
  :-/</p>