Reputation: 4482
If I have a iterators, say a=1:10
and an array that I've already allocated (x = zeros(10)
), how can I collect my array into the container without allocating a new array?
E.g. does something like collect!(x, a)
exist?
Upvotes: 1
Views: 58