Multiple associated values for an enum

Just use something like this and add 1 to it, to get the length for a dense array:

Or use std.enums.directEnumArrayLen


Ahh ok, you want array indexing directly via enums.

1 Like