I\'m try to learn some Scala reading Programming Scala, by Dean Wampler.
I\'m trying to replicate a code snippet about Enumeration
Enumeration
obje
You need to use .values:
.values
for (breed <- Breed.values) println(breed.id + "\t" + breed)
And why not make it a bit more scala-y
Breed.values.foreach(breed => println(breed.id + "\t" + breed));