Swift Enum Tous les cas
enum Animal: CaseIterable {
case monkey
case leon
}
Animal.allCases.forEach { print($0) }
Jorel
enum Animal: CaseIterable {
case monkey
case leon
}
Animal.allCases.forEach { print($0) }