There once was a coder from Spain
For whom enums were a bane
But when he counted
The partitions he'd mounted
His enums became a linear train.