SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 3
From all the options displayed here, this is the one that worked for me.
let arr = [6,1,2,3,4,10,11] var sumedArr = arr.reduce(0, { ($0 + $1)}) print(sumedArr)