variable parameter

func totalStudent(data: String...) -> Int {
  let numStudents = data.count
  return numStudents
}
print(totalStudent(data: "Denial", "Peter"))
// print: 2
Comments