선언
enum Weekday { case monday case tuesday case wednesday case thursday case friday } |
or
enum Weekday { case monday, tuesday, wednesday, thursday, friday } |
변수
var day = Weekday.monday |
선언
enum Weekday { case monday case tuesday case wednesday case thursday case friday } |
or
enum Weekday { case monday, tuesday, wednesday, thursday, friday } |
변수
var day = Weekday.monday |