Im having trouble in swift using nested functions and variadic inputs. the following function returns an error saying it can not convert type [int] to to expected int the mathFunction has the same input type as defined and given. Do I need to do any sort of converion?
func printResults(_ mathFunction: (Int...) -> Double, _ a: Int...) {
print("Results \(mathFunction(a))")
}