Calls a function and names the result with the first argument.

callAndName(fun, x, ...)

Arguments

fun

function.

x

The first input to fun.

...

Additional arguments passed to fun.

Value

The result of fun(x, ...), with the names given by the argument x.

See also