Last active
December 28, 2017 20:54
-
-
Save lucianoschillagi/f9a5e2a7b64fc0b2aa4d94b5a708d4ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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