Guest User

Untitled

a guest
Mar 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public enum foo {
  2. case A
  3. case B
  4. case C
  5. case ... //goes on for hundreds of enums
  6. }
  7.  
  8. func getNumber() -> Int { //multiple functions just like this for each A, B, C...
  9. switch self {
  10. case .A: return 102 //numbers are arbitrary
  11. case .B: return 438
  12. case .C: return 293
  13. case ... //and so on
  14. }
  15. }
Add Comment
Please, Sign In to add comment