Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SahilMutualMobile/f24ed9e30dc8cc66c80efccc6ff38a44 to your computer and use it in GitHub Desktop.
Save SahilMutualMobile/f24ed9e30dc8cc66c80efccc6ff38a44 to your computer and use it in GitHub Desktop.
NewGenerics4
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