Answers for "julia unzip array of tuples"

0

julia unzip array of tuples

# slow
unzip = collect(zip(arr...))
# faster
unzip(a) = map(x->getfield.(a, x), fieldnames(eltype(a)))
Posted by: Guest on April-15-2021

Code answers related to "Julia"

Browse Popular Code Answers by Language