Skip to content

Instantly share code, notes, and snippets.

@suraphanL
Created September 10, 2016 19:31
Show Gist options
  • Save suraphanL/4bb268f87b0542f7bbbbe32134c61b8c to your computer and use it in GitHub Desktop.
Save suraphanL/4bb268f87b0542f7bbbbe32134c61b8c to your computer and use it in GitHub Desktop.
let squaredMod = (1...10).map { $0 * $0 }.filter { $0 % 2 == 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment