Variadic function
A parameter declared with "*", can take any number of arguments of any type.
This function can be called with any number of arguments:
Also, there is "..." which transforms an array into a list of arguments.
Last updated
A parameter declared with "*", can take any number of arguments of any type.
This function can be called with any number of arguments:
Also, there is "..." which transforms an array into a list of arguments.
Last updated