Create three (or higher) dimensional array with Julia
<p>In Julia, the <code>;</code> may be used to create a two-dimensional array.</p>

<pre><code>julia&gt; [1 2; 3 4]
2x2 Array{Int64,2}:
 1  2
 3  4
</code></pre>

<p>Is it possible to use a similar syntax to create a three-dimensional (or higher-dimensional) array? The following works, but I am unsure as to whether or not there is a cleaner, better way.</p>

<pre><code>julia&gt; reshape(collect(1:8), 2, 2, 2)
2x2x2 Array{Int64,3}:
[:, :, 1] =
 1  3
 2  4

[:, :, 2] =
 5  7
 6  8
</code></pre>