I have a multidimensional array called 'data' that is initialised as so:
var data = [[String]]()
I can add all of my required arrays to this without issue.
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:
- Find the count of the longest array
- Append a number of "" (i.e. blank values) to the end of each array to equal the max count
I am having zero success finding out how to do either of these things. Any advice?