Skip to content

Instantly share code, notes, and snippets.

@peterstuart
Created August 13, 2014 15:45
Show Gist options
  • Save peterstuart/06e094ea18d500b4b6d4 to your computer and use it in GitHub Desktop.
Save peterstuart/06e094ea18d500b4b6d4 to your computer and use it in GitHub Desktop.
let evenNumbers = numbers.filter { $0 % 2 == 0 }
// [ 10000, 50000, 100000, 1000000 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment