title: Julia 1.1 Create a grid (array of points in a grid)
body: <p>Using Julia 1.1, I want to create a grid of points based on a vector of ranges</p>
  
  <p>When using this code, it gives me a list of such points</p>
  
  <pre><code>u = [[i j ] for i in -1:0.5:1, j in -1:0.5:1]
  [u...]
  </code></pre>
  
  <p>However, I am unable to develop a more generic approach that would create such a vector of multidimensional points when given an array of ranges</p>
  
  <p>For example, develop a createGrid function that would take a Vector of n ranges as argument and output a list of all the points. </p>
  
  <pre><code>createGrid([1.:0.5:0., 1.:0.5:0., 1.:0.5:0.])
  </code></pre>
  
  <p>that would output:</p>
  
  <pre><code>27-element Array{Array{Float64,2},1}:
   [-1.0 -1.0 -1.0]
   [-0.5 -1.0 -1.0]
   [0.0 -1.0 -1.0] 
   [-1.0 -0.5 -1.0]
   [-0.5 -0.5 -1.0]
   [0.0 -0.5 -1.0] 
   [-1.0 0.0 -1.0] 
   [-0.5 0.0 -1.0] 
   [0.0 0.0 -1.0]  
   [-1.0 -1.0 -0.5]
   [-0.5 -1.0 -0.5]
   [0.0 -1.0 -0.5] 
   [-1.0 -0.5 -0.5]
   ⋮               
  </code></pre>
  
  <p>Thank you for any suggestion</p>