Julia unzip array of tuples

Option 1: Slow

unzip = collect(zip(arr...))

Option 2: Faster

unzip(a) = map(x->getfield.(a, x), fieldnames(eltype(a)))
Content Protection by DMCA.com
Please Share