title: Groovy: create a two-dimensional array from two ranges
body: <p>I want to create this:</p>
  
  <pre><code>[ [ 1, 1 ], [ 1, 2 ], [ 1, 3 ], [ 2, 1 ] ... [ 6, 3 ]]
  </code></pre>
  
  <p>Using GroovyConsole I've being trying stuff like this:</p>
  
  <pre><code>def blob = (1..6).collect{ i -&gt;
    (1..3).collect{ j -&gt;
      [ i, j ]
    }
  }
  println "$blob ${blob.class.simpleName}"
  </code></pre>
  
  <p>... with various permutations of calls to <code>flatten</code>, as you might surmise.</p>
  
  <p>Is there a way to achieve this?</p>