you shouldn't need to explicitly call "apply" here. Table(numCurrCols, numCurrRows, newData) should desugar to the same thing.