Previous Up Next

12.4.1  Defining a function with a variable number of arguments: args

The args command returns the list of arguments of a function.

Note that args() will not work, the command must be called as args or args(NULL). You can also use (args)[0] to get the name of the function and (args)[1] to get the first argument, etc., but the parentheses about args is mandatory.


Examples.


Previous Up Next