How about this?

julia> function distance(point::Point)c
         x = point.x
         y = point.y
         sqrt(x*x + y*y)
       end


Reply via email to