func f<X>(_ xs: [X]) { print("Any: \(xs)") } func f<X: Numeric>(_ xs: [X]) { print("Numeric: \(xs)") } f([2, 3, 5])