I don't think so, because on this line, I wanted to loop through the outer Array[ Array[V] ] first to check if the thing is ragged or not. And for the latter one, I did it this way, because I thought using a single index (for Array.tabulate) would be painful to calculate row and column indices with modulo and %, etc.?