title: foreach and Enumeration
body: <p>I'm try to learn some Scala reading <a href="http://ofps.oreilly.com/titles/9780596155957/index.html" rel="noreferrer">Programming Scala, by Dean Wampler</a>.</p>
  
  <p>I'm trying to replicate a code snippet about <code>Enumeration</code> </p>
  
  <pre><code>object Breed extends Enumeration {
    val doberman = Value("Doberman Pinscher")
    val yorkie = Value("Yorkshire Terrier")
    val scottie = Value("Scottish Terrier")
    val dane = Value("Great Dane")
    val portie = Value("Portuguese Water Dog")
  }
  
  for (breed &lt;- Breed) println(breed.id + "\t" + breed)
  </code></pre>
  
  <p>But, in the last line of code, I got this error:</p>
  
  <pre><code>value foreach is not a member of object Breed
  </code></pre>
  
  <p>Am I missing something? How can I solve?</p>