Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum foo {
- case A
- case B
- case C
- case ... //goes on for hundreds of enums
- }
- func getNumber() -> Int { //multiple functions just like this for each A, B, C...
- switch self {
- case .A: return 102 //numbers are arbitrary
- case .B: return 438
- case .C: return 293
- case ... //and so on
- }
- }
Add Comment
Please, Sign In to add comment