chickadee » srfi-102 » procedure-arity

procedure-arity PROCEDUREprocedure

Produces an arity-object representing the arity of PROCEDURE. If #f results, no information is available for PROCEDURE.

If this procedure produces an exact-non-negative-integer, K, then PROCEDURE accepts exactly K arguments; applying PROCEDURE to some number of arguments other than K will result in an arity error.

If this procedure produces an arity-at-least-object, A, then PROCEDURE accepts (arity-at-least-value A) or more arguments; applying PROCEDURE to some number of arguments less than (arity-at-least-value A) will result in an arity error.

If this procedure produces a list, then PROCEDURE accepts any of the arities described by the elements of the list; applying PROCEDURE to some number of arguments not described by an element of the list will result in an arity error.