title: Put structs in an array
body: <p>I would like to put structs in an array. I just can not, I can not imagine that this is impossible.</p>
  
  <p>The code I have so far is:</p>
  
  <pre><code>struct PersonA {
       var name: String
       var surname: String
       var phone: Int }
  
  var contactsA: [PersonA] = []
  
  var person1: PersonA = PersonA (name: "Jack", surname: "Johnson", phone: 2)
  var person2: PersonA = PersonA (name: "alex", surname: "a", phone: 3)
  
  contactsA.append (person1)
  contactsA.append (person2)
  
  for contact in contactsA {
       print ("\ (contact.name) \ (contact.surge)")
  }
  </code></pre>
  
  <p>In this code I use the vars person1 and person2. I have to make a lot of contacts so I would like to do this without having to make a separate variable for each contact.</p>