Sometimes I have loops like
for state in 0 .. 1:
....
if state == 0:
....
Run
It would be better iterating over enums, like
type
Color = enum
red, green, blue
for c in Color:
echo c
if c == red:
echo "caution"
Run
But I am too lazy to define the enum type ONLY for this, so I wonder if
something like
for c in enum(red, green, blue):
echo c
if c == red:
echo "caution"
Run
may be possible?
