연관 값을 같는 열거형 enum MainDish { case pasta(taste: String) case pizza(dough: String, topping: String) case chicken(withSource: Bool) case rice } var dinner: MainDish = MainDish.pasta(taste: "크림") print(dinner) dinner = .pizza(dough: "치즈크러스트", topping: "불고기") print(dinner) dinner = .chicken(withSource: true) print(dinner) dinner = .rice print(dinner) // pasta(taste: "크림") // pizza(dough: "치즈크러스트", to..