Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/swift42-iterar.swift Secret
Created Sep 2, 2018

What would you like to do?
public enum DatosPersonales: CaseIterable {
    case nombre
    case apellidos
    case direccion
    case telefonoMovil
    case telefonoFijo
print("Puede establecer \(DatosPersonales.allCases.count) campos")
for datoPersonal in DatosPersonales.allCases
let descripcion ={ "\($0)" }).joined(separator: ", ")
 nombre, apellidos, direccion, telefonoMovil, telefonoFijo
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.