func hypotenuse(_ a: Double, _ b: Double) -> Double { return (a * a + b * b).squareRoot() } let (dx, dy) = (3.0, 4.0) let distance = hypotenuse(dx, dy) // distance == 5.0