Hi,
have a look ...
if you mean const defined enums
enum fruits {banana, apple, pear}
# Called when the node enters the scene tree for the first time.
func _ready():
for fruit in fruits:
print_debug(fruit) #prints banana, apple, pear
for fruit in fruits.size():
print_debug(fruit)# prints 0,1,2
... or do you mean arrays?
for fruit in ["banana", "apple", "pear"]:
print_debug(fruit) #prints banana, apple, pear