object WeekDay extends Enumeration {
type WeekDay = Value
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
How would you set an initial value so WeekDay.Mon == 1 and WeekDay.Tue == 2 and so on would be true?
There's a constructor in Enumeration, Enumeration(initial: Int, names: String*), is there a way I could use that to create the WeekDay object?