Hi, just learning Nim as well, so I might be wrong but this is maybe what you
want:
type
MyBrokerTypes {.pure.} = enum
valSvcFee ,
valWirFnd ,
valSell ,
valBuy ,
valCasDiv
var BrokerBankLike : set[MyBrokerTypes]
Runnow every enum has an underlying int value (0,1,2, etc) , you can also assign your own but these values can only be ordinal: ints, chars or bools so strings like in your example won't work. You can use the $ operator to convert an enum value to a string.
