Number of arguments in function

146 Views Asked by At

Let's say I have a structure "phonenumber".

(define-structure phonenumber country area prefix line)

This will give me a function (make-phonenumber). I would like to get the number of arguments that make-phonenumber takes. The answer is 4.

1

There are 1 best solutions below

1
On

See if your Scheme implementation offers the procedure-arity function.