-
-
Save fitomad/98a4aa59b2a6bde2c005d4c5e7cda7f0 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
public enum OtrosDatosPersonales: String, CaseIterable { | |
case correoElectronico = "email" | |
} | |
print("Puede establecer \(OtrosDatosPersonales.allCases.count) campos") | |
for otroDatoPersonal in OtrosDatosPersonales.allCases { | |
print(otroDatoPersonal) | |
} | |
/* | |
correoElectrónico | |
*/ | |
let otraDescripcion = OtrosDatosPersonales.allCases.map({ "\($0.rawValue)" }).joined(separator: ", ") | |
print(otraDescripcion) | |
/* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment