I want to lazily collect
a zip
iterator. See MWE below where I applied pointer.
to a
before using a zip
and collect
, but pointer.(a)
allocated a new vector, so I don’t want that. Is there a way to lazily do pointer.(a)
so I dont’ have to create a new vector first but still end up with ptra
being a vector of tuples?
a = rand([randstring(8) for i = 1_000_000], 100_000_000)
b = rand(100_000_000)
c = similar(b)
ptra = collect(zip(pointer.(a), b, c))