Displaying 2 results from an estimated 2 matches for "my_lapply".
Did you mean:
mclapply
2023 Nov 11
1
New syntax for positional-only function parameters?
...(). Cons: this argument forwarding is not perfect, e.g. a missing argument will cause an error, even if the target function could have handled it.
* Curry some or all of the arguments, i.e. replace the original closure with the one calling the original function and passing it extra arguments, e.g. my_lapply(X, curry(f, X = X, f = f), ...). I think I remember someone asking for dedicated currying syntax in R. Cons: a simple curry() implementation will suffer from the same problem.
* Instead of taking the extra arguments in the same call, return a closure that would take them and perform the call: e.g....
2023 Nov 06
2
New syntax for positional-only function parameters?
Dear List,
I'm writing to gauge interest in new syntax for positional-only
function parameters to be added to R.
The pattern of functions accepting other functions as inputs and
passing additional ... arguments to them is prevalent throughout
the R ecosystem. Currently, however, all such functions must one
way or another tackle the problem of inadvertently passing arguments
meant to go to