Does Apache Groovy support categorical variables? I'm familiar with R and it has leveled factorized vectors. I'd like to know if Apache Groovy has similar functionality.
Groovy has "enums" that let you define a preset amount of custom values.
Example:
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}