title: Is there outer map function in Julia?
body: <p>I am trying to construct all possible combinations of four vectors (parameters in a model) that would give me a big nx4 matrix and I could then run simulation on each set (row) of parameters. In R I would achieve this by using <code>expand.grid</code> in Mathematica style, I could use something like outer product with <code>vcat</code> and reduce the output using <code>hcat</code>.</p>
  
  <p>Is there some function analog of <code>expand.grid</code> from R or outer map function?</p>
  
  <p>Toy example:</p>
  
  <pre><code>A = [1 2]
  B = [3 4]
  
  some magic
  
  output = [1 3, 1 4, 2 3, 2 4]
  </code></pre>