In other words, why can we index like b[ind1][ind2] to get a correct series of values (using Int64 indices, not BitVectors) but a value cannot be written to a[ind1][ind2]? Should it not result in a warning if such assignment is done incorrectly?
Side note: When trying to debug these things it’s useful to simplify your working example. e.g. not using rand and mean, just presenting the indexing problem.
Thanks for the clear explanation and the Meta.@lower example. I can see now that _temp2 has no notion of the location in a anymore, just the values. It all makes sense.