Array of arrays indexing problem

Here, a[:] is just a syntax to copy a. So a[:][1] gets the first element of a, which has 10 elements.

You want getindex.(a, 1) which applies the function t -> getindex(t, 1) to every element of a.

6 Likes