Skip to content

Instantly share code, notes, and snippets.

@Ceri-anne
Last active April 29, 2018 16:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Ceri-anne/62ff2469c7c2f15520df7fbf0819b052 to your computer and use it in GitHub Desktop.
let playersUpper = players.flatMap{ $0.map { $0.uppercased() } }
print(playersUpper)
// Returns ["OWEN", "FOWLER", "RUSH", "BARNES", "MCMANAMAN", "GERRARD", "CARRAGER", "THOMPSON", "NICOL"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment