Created
October 5, 2022 12:06
-
-
Save SahilMutualMobile/b3e1c5e35d073094e55052c867bf44cf to your computer and use it in GitHub Desktop.
NewGenerics5
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
enum DrinkType: String, RestaurantItem { | |
case soda = "Soda" | |
case lemonade = "Lemonade" | |
func acceptOrderItem() -> String { | |
"\(self.rawValue) drink in preparation" | |
} | |
func prepareOrderItem() -> String { | |
"\(self.rawValue) drink is ready!" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment