I\'m now reading Swift 3 book and found this line there:
func sumOf(numbers: Int...) -> Int {
}
and there are just this description:
<
As per the above explanation the variadic arguments are variable number of argument the function takes variable number of arguments in a numbers array. so if you want to print each element you can do so by
func sumOf(numbers: Int...) -> Int {
var sum:Int = 0
for num in numbers {
sum = sum + num
}
return sum
}
and the number of int element passed to this number may very.