I have an array with some integers in it, I need to sum them up and then compare. My code works perfectly in swift 2.
var sumedArr:[AnyObject] = textfieldarray.reduce(0, combine: {$0 + $1})
print(sumedArr)
I'm getting this error now.
"Type of expression is ambiguous without more context"