title: Append values to multidimensional array in Swift
body: <p>I have a multidimensional array called 'data' that is initialised as so: </p>
  
  <pre><code>var data = [[String]]()
  </code></pre>
  
  <p>I can add all of my required arrays to this without issue. </p>
  
  <p>The problem I am facing is that I need all of the included arrays to have the same number of values (I am creating a spreadsheet and I need to have the same number of 'columns' in each array). To do this I am trying to:</p>
  
  <ol>
  <li>Find the count of the longest array</li>
  <li>Append a number of "" (i.e. blank values) to the end of each array to equal the max count</li>
  </ol>
  
  <p>I am having zero success finding out how to do either of these things. Any advice?</p>