Let’s say I want to preallocate 100 Point
objects in an array… how?
julia> mutable struct Point
x::Float64
y::Float64
end
The fill
function come to mind but it does not work because only one Point
is made and all 100 entries in the array point to the same object…