I\'m just starting out and I\'m looking for an easy way to sum a simple array. I\'ve read into apple developer site on key value coding and I don\'t understand how to apply
In Swift 4:
let array = [1,2,3,5] let sum = array.reduce(0, {$0 + $1}) print(sum)