Created
October 5, 2022 11:39
-
-
Save SahilMutualMobile/f24ed9e30dc8cc66c80efccc6ff38a44 to your computer and use it in GitHub Desktop.
NewGenerics4
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 SideDishType: String, RestaurantItem { | |
case fries = "Fries" | |
case calzone = "Calzone" | |
func acceptOrderItem() -> String { | |
"\(self.rawValue) side dish in preparation" | |
} | |
func prepareOrderItem() -> String { | |
"\(self.rawValue) side dish is ready!" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment