title: Equivalent to *args in Swift?
body: <pre><code>func sumOf(numbers: Int...) -&gt; Int {
      var sum: Int = 0
      for number in numbers {
         sum += number
      }
      return sum
  }
  sumOf(1, 2, 3) //6
  </code></pre>
  
  <p>This is sample code taken from the <code>Swift</code> iBook. It finds the sum of any number of arguments.</p>
  
  <p>A python equivalent of this code would be:</p>
  
  <pre><code>def sumOf(*args):
      sum = 0
      for number in args:
          sum += number
      return sum
  sumOf(1, 2, 3) #6
  </code></pre>
  
  <p>In python, *args accepts all variable types, so if I want to do this for whatever reason, I can:</p>
  
  <pre><code>def sumOf(*args):
      sum = ""
      for number in args:
          sum += str(number)
      return sum
  sumOf(1, "test", 3) #"1test3"
  </code></pre>
  
  <p>How do I do this in <code>Swift</code>? How do I create a function that has a variable number of parameters of ANY TYPE? I don't need to do this, but I'd like to know how.</p>
  
  <p>Thanks.</p>