Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// A la antigua...
let names = bunchOfUsers.map { $0.nombre }
// Con Swift 5.2 pasamos el `keyPath` como una función
let newNames = bunchOfUsers.map(\.nombre)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.