Top "Variadic-functions" questions

A function is variadic if it can accept a variable number of arguments; that is, its arity is not fixed.

How to pass an ArrayList to a varargs method parameter?

Basically I have an ArrayList of locations: ArrayList<WorldLocation> locations = new ArrayList<WorldLocation>(); below this I …

java variadic-functions
Is it possible to send a variable number of arguments to a JavaScript function?

Is it possible to send a variable number of arguments to a JavaScript function, from an array? var arr = ['a',…

javascript variadic-functions
How to pass variable number of arguments to printf/sprintf

I have a class that holds an "error" function that will format some text. I want to accept a variable …

c++ c printf variadic-functions
Possible heap pollution via varargs parameter

I understand this occurs with Java 7 when using varargs with a generic type; But my question is.. What exactly does …

java eclipse generics variadic-functions
How to pass variable number of arguments to a PHP function

I have a PHP function that takes a variable number of arguments (using func_num_args() and func_get_args()), …

php variadic-functions
How can you pass multiple primitive parameters to AsyncTask?

There are related questions, such as How can I pass in 2 parameters to a AsyncTask class? , but I ran into …

android android-asynctask primitive variadic-functions
Passing variable arguments to another function that accepts a variable argument list

So I have 2 functions that both have similar arguments void example(int a, int b, ...); void exampleB(int b, ...); Now …

c++ variadic-functions
Java "params" in method signature?

In C#, if you want a method to have an indeterminate number of parameters, you can make the final parameter …

java variadic-functions params method-declaration
Passing an array to a function with variable number of args in Swift

In The Swift Programming Language, it says: Functions can also take a variable number of arguments, collecting them into an …

swift variadic-functions
Variable number of parameters in function in C++

How I can have variable number of parameters in my function in C++. Analog in C#: public void Foo(params …

c++ c syntax variadic-functions