title: Multidimensional Array Comprehension in Julia
body: <p>I'm mucking about with Julia and can't seem to get multidimensional array comprehensions to work. I'm using a nightly build of 0.20-pre for OSX; this could conceivably be a bug in the build. I suspect, however, it's a bug in the user. </p>
  
  <p>Lets say I want to wind up with something like:</p>
  
  <pre><code>5x2 Array
  1 6
  2 7
  3 8
  4 9
  5 10
  </code></pre>
  
  <p>And I don't want to just call <code>reshape</code>. From what I can tell, a multidimensional array should be generated something like: <code>[(x, y) for x in 1:5, y in 6:10]</code>. But this generates a 5x5 Array of tuples:</p>
  
  <pre><code>julia&gt; [(x, y) for x in 1:5, y in 6:10]
  5x5 Array{(Int64,Int64),2}:
   (1,6)  (1,7)  (1,8)  (1,9)  (1,10)
   (2,6)  (2,7)  (2,8)  (2,9)  (2,10)
   (3,6)  (3,7)  (3,8)  (3,9)  (3,10)
   (4,6)  (4,7)  (4,8)  (4,9)  (4,10)
   (5,6)  (5,7)  (5,8)  (5,9)  (5,10)
  </code></pre>
  
  <p>Or, maybe I want to generate a set of values and a boolean code for each:</p>
  
  <pre><code>5x2 Array
  1 false
  2 false
  3 false
  4 false
  5 false
  </code></pre>
  
  <p>Again, I can only seem to create an array of tuples with <code>{(x, y) for x in 1:5, y=false}</code>. If I remove the parens around <code>x, y</code> I get <code>ERROR: syntax: missing separator in array expression</code>. If I wrap <code>x, y</code> in something, I always get output of that kind -- <code>Array</code>, <code>Array{Any}</code>, or <code>Tuple</code>. </p>
  
  <p>My guess: there's something I just don't get here. Anybody willing to help me understand what?</p>