Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję0
What if you actually want to specify an int for an enum?
1 Odpowiedź
0
you can add integer value to enums like this:
enum num {
case first(Int)
case second(Int)
}