Created
June 4, 2014 11:00
-
-
Save stevekinney/f29e4903675d5d7d1a57 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 Planet: Int { | |
case Mercury = 1, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune | |
} | |
Planet.Mercury.toRaw() | |
let possiblePlanet = Planet.fromRaw(7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment