fn interp_vectorize(
positional: &[RValue],
named: &[(String, RValue)],
context: &BuiltinContext<'_>,
) -> Result<RValue, RError>Expand description
Create a vectorized version of a function.
Returns a new closure that calls mapply(FUN, ...) under the hood,
so scalar user-defined functions work element-wise on vector inputs.
@param FUN function to vectorize @param vectorize.args character vector of argument names to vectorize over (default: all formals) @param SIMPLIFY if TRUE (default), simplify the result @return a new function that applies FUN element-wise