Consider the following minimal example:
A = [Vector{Int}(undef, 5) for i = 1:4]
a = [zeros(Int, 2) for i = 1:4]
I’d like to put a
into the first 2 inner indices of A
without a for loop. Is that possible?
Something like:
A[:][1:2] = a
but this errors with:
ERROR: DimensionMismatch("tried to assign 4 elements to 2 destinations")