python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
pack and unpack to switch from function taking array of argumento to variadic function and viceversa
I've just been wandering why lodash/fp doesn't have these two functions:
unpack = f => x => f(...x)
pack = f => (...x) => f(x)
I'm borrowing the name unpack from the function boost::hana:...
Enlico
Votes: 0
Answers: 0
Different behaviour of segmentation fault for different number of arguments in a variadic function
I am using a variadic function definition to handle multiple arguments of the same type (std::vector<[data_type]>). As the termination criterion, I am using the try-catch to use the exception th...
nimesh00
Votes: 0
Answers: 0
How to wrap a variadic function in C
I'm trying to wrap a variadic function to validate the input beforehand. To be precise i need to call sd_notifyf(int unset_environment, const char *format, ...).
https://www.freedesktop.org/software/s...
Xershy
Votes: 0
Answers: 1
Use of variable arguments (dot-dot-dot) in stats::lm in R
Suppose we have a function that makes a call to stats::lm and takes a formula and a data frame as arguments. Further arguments that we want to pass to stats::lm can be provided using variable argument...
user2986671
Votes: 0
Answers: 1