function-arguments

Returns information about the arguments accepted by a function.  This function returns three values:

  • required-number is the number of required arguments accepted by the function.
  • rest-boolean indicates whether the function accepts a variable number of arguments.
  • kwd-sequence indicates whether the function accepts keyword arguments.  If the value is #f then the function does not accept keyword arguments.  Otherwise, the function does accept keyword arguments, and the value is either a collection of the keywords that are permissible for any call to the function, or the symbol #”all” if all keywords are permitted by the function.

Note that particular calls to a generic function may accept additional keywords not included in the third value returned by function-arguments, by virtue of their being recognized by applicable methods.

Exported from

Arguments

functionAn instance of <function>.

Values

required-numberAn instance of <integer>.
rest-booleanAn instance of <boolean>.
kwd-sequenceAn instance of type-union(<simple-object-vector>, singleton(#f), singleton(#”all”)).
Returns information about the arguments accepted by a function.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of objects that can be applied to arguments.
The class of integers.
The class of boolean values.