What is the easiest (best) way to find the sum of an array of integers in swift? I have an array called multiples and I would like to know the sum of the multiples.
Swift3 has changed to :
let multiples = [...] sum = multiples.reduce(0, +)