title: 6- or more dimensional Arrays in Scala
body: <p>I was looking into multi-dimensional Arrays in Scala and came across some easy ways to create multi-dimensional Arrays. Namely:</p>
  
  <p><code>val my3DimensionalArray = Array.ofDim[Int](3,4,5) 
  //array with dimensions 3 x 4 x 5
  </code></p>
  
  <p>Or even</p>
  
  <p><code>val myFilledArray = Array.fill[Int](3,4,5)(0)
  //Array of same dimension filled with 0's
  </code></p>
  
  <p>However this only works for 1 - 5 dimensional Arrays:</p>
  
  <p><code>val my6DimensionalArray = Array.ofDim[Int](3,3,3,3,3,3) //Error
  </code></p>
  
  <p>So how do people usually deal with creating higher dimensinoal Arrays? Is this left to 3rd party libraries to implement, or are there other data structures that Scala encourages us to use instead of high dimensional Arrays?</p>