function_args

function_args — lists the arguments of a function.

Syntax

function_args (function)

		

Arguments

function

Any function name.

Returns

A list of the arguments of function.

Description

This function lists the arguments of any function. Each argument is returned in the form of an association list, whose first element is the function argument, and whose second element represents the argument modifier(s), if any. The hex numbers that correspond to function modifiers are as follows:

    0x20000000  Optional (?).

    0x40000000 Variable length argument (...).

    0x80000001 Not evaluated (!).

Example

Gamma> function_args(getprop);
((symbol 0) (property 0))
Gamma> function_args(drain);
((file 0) (t_or_nil 0))
Gamma> function_args(gc);
nil
Gamma> function_args(defvar);
((symbol -2147483648) (value 0) (constant? 536870912))
Gamma> function_args(read);
((file 0))
Gamma> function g (a,b,c) {((a * b)/c);}
(defun g (a b c) (/ (* a b) c))
Gamma> function_args(g);
((a 0) (b 0) (c 0))
Gamma> 
		

See Also

function_body, function_name