Swift Tutorial - Tutorialspoint

(backadmin) #1
let yearMonth = Month.May.rawValue
println("Value of the Month is: \(yearMonth).")

When we run the above program using playground, we get the following result:


Value of the Month is: 5.
Free download pdf