Skip to content

Instantly share code, notes, and snippets.

@peterstuart
Created August 13, 2014 15:46
Show Gist options
  • Save peterstuart/c057630a7e60efb050da to your computer and use it in GitHub Desktop.
Save peterstuart/c057630a7e60efb050da to your computer and use it in GitHub Desktop.
let total = numbers.reduce(0) { $0 + $1 }
// 1302255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment