Vector to @enum

clrescobar
Sat, 23 Apr 2022 17:21:30 +0000
General Usage

Hello,

I would like to know how to convert a vector into @enum. I have tried:

AS =[Action(τ,ρ,χ,ω) for τ in 0:5 for ρ in 0:5 for χ in 0:5 for ω in 0:5]

for i in 1:1296
    action = AS[i]
    @enum Actions action
end

But it does not work.

Could you please help me? Thank you so much

9 posts - 3 participants