Sorry for the awkward wording. Here's an example:
julia> type MyType
x::Float64
end
julia> v = [MyType(float(i)) for i in 1:50];
My question is: how do I best recover the values of x for all elements in v.
Here's the way I do it now:
julia> u = [v[i].x for i in 1:50]
This has the unfortunate effect of giving me an Array{Any,1}, but I can
apparently fix that with map(Float64,u), according to the deprecation
warning. Is there (a) a more convenient way to do this, and (b) a more
efficient way?
Thanks,
Chris