title: Array of struct in Swift
body: <p>Iteration of elements yield error </p>
  
  <blockquote>
    <p>could not find member 'convertFromStringInterpolationSegment' </p>
  </blockquote>
  
  <p><code>println("\(contacts[count].name)")"</code>, while direct list item prints fine. </p>
  
  <p>What am I missing?</p>
  
  <pre><code>struct Person {
      var name: String
      var surname: String
      var phone: String
      var isCustomer: Bool
  
      init(name: String, surname: String, phone: String, isCustomer: Bool)
      {
          self.name = name
          self.surname = surname
          self.phone = phone
          self.isCustomer = isCustomer
      }
  
  }
  
  var contacts: [Person] = []
  
  var person1: Person = Person(name: "Jack", surname: "Johnson", phone: "7827493", isCustomer: false)
  
  contacts.append(person1)
  
  var count: Int = 0
  for count in contacts {
      println("\(contacts[count].name)") // here's where I get an error
  }
  
  println(contacts[0].name) // prints just fine - "Jack"
  </code></pre>