0

What if you actually want to specify an int for an enum?

21st Jan 2016, 9:08 PM
Yannick Winters
Yannick Winters - avatar
1 Resposta
0
you can add integer value to enums like this: enum num { case first(Int) case second(Int) }
18th Mar 2016, 1:57 PM
Hamed Almujaibel
Hamed Almujaibel - avatar