Quote:
|
Originally Posted by Velox Cruentus
Not quite sure -- I had that problem some... Perhaps a month ago? I don't know. It only returned the first array dimension.
|
In Graal, a multidimensional array is essentially just an array of arrays. If you try to apply size() to it then you'll just get the length of that first array. If you want to get the total number of elements, and you're sure that every component array is the same width, you can just do: array.size() * array[0].size().
Personally, I'd just keep track of those things with variables.