\(name), good \(timeOfTheDay)") } } greet(timeOfTheDay: "morning", names: "Joseph", "Clara", "William", "Maria") // Output: // Looks like we have 4 people // Hello Joseph, good morning // Hello Clara, good morning // Hello William, good morning // Hello Maria, good morning In Tcl A Tcl procedure or lambda is variadic when its last argument is : this will contain a list (possibly empty) of all the remaining arguments. This pattern is common in many other procedure-like methods. proc greet {timeOfTheDay args} { puts "Looks like we have [llength $args] people" foreach name $args { puts "Hello $name, good $timeOfTheDay" } } greet "morning" "Joseph" "Clara" "William" "Maria" # Output: # Looks like we have 4 people # Hello Joseph, good morning # Hello Clara, good morning # Hello William, good morning # Hello Maria, good morning See also Varargs in Java programming language Variadic macro (C programming language) Variadic template Notes References External links Variadic function. Rosetta Code task showing the implementation of variadic functions in over fifty programming languages. Variable Argument Functions — A tutorial on Variable Argument Functions for C++ GNU libc manual Subroutines Articles with example Python (programming language) code