distance
distance([x1, y1], [x2, y2])
distance([[x1, y1], [x2, y2]])
Try it yourself:
$1 |
distance([0,0], [4,4])
|
|
$2 |
distance([[0,0], [4,4]])
|