Scala varargs syntax (and examples)Scala varargs syntax allows defining functions with a variable number of arguments using * symbol after parameter type declaration.Scala varargs array is created within the function when using the varargs syntax.