title: Variable p passed by reference before being initialized
body: <p>I have a Human class with a function that takes any amount of people and determines if someone is older than any of those people, then returns an array with the people he/she is older than.</p>
  
  <pre><code>func isOlderThan(people: Human...) -&gt; [Human] {
      var p: [Human]
  
      for person in people {
          if age &gt; person.age {
              p.append(person)
          }
      }
      return p
  }
  </code></pre>
  
  <p>However at </p>
  
  <pre><code>p.append(person)
  </code></pre>
  
  <p>I'm getting the error</p>
  
  <pre><code>Variable p passed by reference before being initialized
  </code></pre>
  
  <p>Anyone sure why this is? Thanks!</p>