Consider creating the following array of arrays:
julia A = [rand(3) for i = 1:5]
5-element Array{Array{Float64,1},1}:
[0.007268793547957397,0.7369278377195478,0.4022138494548331]
[0.1465723997916304,0.31109494689689,0.8423556604313642]
Unfortunately yes, this is (currently) expected.
The problem is that B is a global variable and currently we can't analyze the
code in the comprehension to ensure that it doesn't change the type of B.
Various suggestions has come up about how to fix this, but currently your
options is to make