julia unzip array of tuples code example
Example: julia unzip array of tuples
# slow
unzip = collect(zip(arr...))
# faster
unzip(a) = map(x->getfield.(a, x), fieldnames(eltype(a)))
# slow
unzip = collect(zip(arr...))
# faster
unzip(a) = map(x->getfield.(a, x), fieldnames(eltype(a)))