title: Swift "where" key word
body: <p>Disclaimer: swift noob</p>
  
  <p>Hi, I've just begun going learning Swift and was going through The Swift Programming Language (Apple's book released during WWDC) and was wondering what the 'where' keyword is. It was used in </p>
  
  <pre><code>let vegetable = "red pepper"
  switch vegetable {
  case "celery":
      let vegetableComment = "Add some raisins and make ants on a log."
  case "cucumber", "watercress":
      let vegetableComment = "That would make a good tea sandwich."
  case let x where x.hasSuffix("pepper"):
      let vegetableComment = "Is it a spicy \(x)?"
  default:
      let vegetableComment = "Everything tastes good in soup."
  }
  </code></pre>
  
  <p>Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. <a href="https://itun.es/us/jEUH0.l">https://itun.es/us/jEUH0.l</a></p>
  
  <p>If anyone could explain and/or show the equivalent in another language (java, c++, obj-c, etc.) that would be great.</p>
  
  <p>Apologies if this has already been asked, I didn't see it anywhere.</p>