How to calculate Euclidean distance between a tuple and each tuple in a Vector using map in Julia?
I want to calculate the Euclidean distance between a tuple and each tuple within a Vector in Julia using the map function, like below (but I get two values instead of three): julia> tups = [ (1, 3), (11, 2), (0, 1) ]; julia> map((x, y) -> √(sum((x.-y).^2)), tups, (3, 3)) 2-element Vector{Float64}: 2.0 8.06225774829855… Read More How to calculate Euclidean distance between a tuple and each tuple in a Vector using map in Julia?