RosettaCodeData/Task/Enumerations/V-(Vlang)/enumerations-5.v
2024-10-16 18:07:41 -07:00

6 lines
91 B
Coq

// Enums can have methods
mut c := Cycle.one
for _ in 0 .. 5 {
println(c)
c = c.next()
}