Created
June 13, 2019 07:11
-
-
Save kwmt/d5205bd0dc3a075dbbaff72ed1158053 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 FromNagative: Int { | |
case a = -1 | |
case b | |
case c | |
} | |
print(FromNagative.a.rawValue) // -1 | |
print(FromNagative.b.rawValue) // 0 | |
print(FromNagative.c.rawValue) // 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment