Access the value at the index specified by the name of an enum member.
The value is returned by reference, so it can used for assignment. map.name is just syntactic sugar for map[SomeEnum.name].
Enumap!(Element, int) elements; elements.water = 5; assert(elements.water == 5);
See Implementation
Access the value at the index specified by the name of an enum member.
The value is returned by reference, so it can used for assignment. map.name is just syntactic sugar for map[SomeEnum.name].