Last active
August 19, 2019 03:41
-
-
Save kgn/b32956a1cacbdfd0aec8ec9d6be7b126 to your computer and use it in GitHub Desktop.
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 Food: String { | |
case beef = "Beef" | |
case chicken = "Chicken" | |
case vegitarian = "Vegitarian" | |
case kids = "Kids" | |
} | |
struct Person { | |
let name: String | |
let food: Food | |
init(_ name: String, _ food: Food) { | |
self.name = name | |
self.food = food | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment