I am trying to implement a Rich enumeration in Scala, where my enumeration would also have to implement for example a trait.
This work fine, however when I tried to iterate the enumerations, the Enumeration.values returns a ValueSet, which is a collection of Enumeration.Value
Is there a simple way to implement this feature, without going to macros and sealed traits are suggested from Travis Brown Iteration over a sealed trait in Scala? ?