| Start |
|---|
| Basics: Using the vararg keyword Define the function using the Now you can pass as many parameters (of the correct type) into the function as you want. Notes: Vararg parameters must be the last parameter in the parameter list. |
| Spread Operator: Passing arrays into vararg functions Arrays can be passed into vararg functions using the Spread Operator, Assuming the following function exists... You can pass an array into the function like so... The spread operator can also be used in the middle of the parameters... Syntax
|
Read Article
https://develop.horje.com/learn/1434/reference