enum Animal: CaseIterable {
case monkey
case leon
}
Animal.allCases.forEach { print($0) }
// conform Languages to caseIterable
enum Season: CaseIterable {
case spring, summer, autumn, winter
}
// for loop to iterate over all cases
for currentSeason in Season.allCases {
print(currentSeason)
}