Output of size(array, N) where N is greater than length(size(array))

Hi there

If I create the array (matrix):

A = fill(1, (2,3))

and then

size(A), size(A,1), size(A,2)

I get what I would expect. However, if I try


I get 1 instead of what naively I would expect now to be an error. Why is it?

In fact, for dataframes, asking for the size of a dimension beyond 2 does raise an error. Why are there these differences in behavior?

Probably because you can also index an array with extra indices:Multi-dimensional Arrays · The Julia Language