Skip to content

Instantly share code, notes, and snippets.

@lucianoschillagi
Last active December 28, 2017 20:54
Show Gist options
  • Save lucianoschillagi/f9a5e2a7b64fc0b2aa4d94b5a708d4ce to your computer and use it in GitHub Desktop.
Save lucianoschillagi/f9a5e2a7b64fc0b2aa4d94b5a708d4ce to your computer and use it in GitHub Desktop.
let termo = ["color": "plateado"]
func color(of termoColor: [String: String]) {
if let color = termoColor["color"] {
print("El termo es color \(color)")
} else {
print("color indeterminado")
}
}
color(of: termo)
// prints "El termo es color plateado"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment