Skip to content

Instantly share code, notes, and snippets.

@kwmt
Created June 13, 2019 07:11
Show Gist options
  • Save kwmt/d5205bd0dc3a075dbbaff72ed1158053 to your computer and use it in GitHub Desktop.
Save kwmt/d5205bd0dc3a075dbbaff72ed1158053 to your computer and use it in GitHub Desktop.
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