title: String indices in Swift 2
body: <p>I decided to learn Swift and I decided to start with Swift 2 right away.</p>
  
  <p>So here is a very basic example that's similar to one of the examples from Apple's own e-book about Swift</p>
  
  <pre><code>let greeting = "Guten Tag"
  
  for index in indices(greeting) {
      print(greeting[index])
  }
  </code></pre>
  
  <p>I tried this in the playground of Xcode 7 and I received the following error</p>
  
  <blockquote>
    <p>Cannot invoke 'indices' with an argument list of type '(String)'</p>
  </blockquote>
  
  <p>I also tried the same thing with Xcode 6 (which is Swift 1.2 AFAIK) and it worked as expected.</p>
  
  <p>Now, my question is: Is this</p>
  
  <ol>
  <li>An error in Xcode 7, it's still a beta release after all, or</li>
  <li>Something that just doesn't work anymore with Swift 2 and the e-book just isn't fully updated yet?</li>
  </ol>
  
  <p>Also: If the answer is "2", how would you replace <code>indices(String)</code> in Swift 2?</p>