Variadic arguments
A variadic function accepts a variable number of arguments. A final parameter prefixed with three dots gathers the extra inputs into an array.
Count the extra names
Keep the first name separate and accept as many additional names as the caller supplies.
func invite(first, ...others):
print(first)
print(count(others))
invite('Ada', 'Lin', 'Sam')
Ada
2
Ada fills the required parameter. Lin and Sam go into the others array.