
1) What is the type for variables a, b, c and d and what would print out for b and d? Explain your answers. func sum(_ values: Int]) -Int t var total 0 for value in values total value return total let values[10, 20, 30] let a = sum let b = a(values) let c = { (value : Int) -> String in return “Total value: (value)” let d c(b)
PayPal Gateway not configured
PayPal Gateway not configured