Created
July 19, 2019 10:24
-
-
Save fitomad/7b0195f03af7df951f4bd4863d77eea1 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 index = Int.random(in: 0 ..< Princesa.allCases.count) | |
switch Princesa.allCases[index] | |
{ | |
case .elsa: | |
print("Elsa") | |
case .anna: | |
print("Anna") | |
@unknown default: | |
print("Por si hacen Frozen 3 y aparece una nueva princesa") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment