get number of procedure arguments
Description
i args(p)
args(p) produces the number of arguments for procedure p. For procedures with a variable number of arguments, the value returned is the negative of the number of formal parameters.
Parameters
- p
- an Icon procedure name
- returns
- number of arguments p takes
Errors
See Also
- proc — convert to procedure