Use number of procedure arguments function from util-proc in command-line.
This commit is contained in:
parent
147afa3ab4
commit
c2c19c2d6a
4 changed files with 16 additions and 9 deletions
|
@ -31,6 +31,8 @@
|
|||
procedure-arity=?
|
||||
procedure-arity>=?
|
||||
procedure-arity>?
|
||||
|
||||
procedure-num-args
|
||||
)
|
||||
|
||||
(import scheme
|
||||
|
@ -72,4 +74,9 @@
|
|||
(or rest?
|
||||
(> args n))))
|
||||
|
||||
;; Returns the number of mandatory arguments
|
||||
(define (procedure-num-args proc)
|
||||
(let-values (((args rest?) (procedure-arity-info proc)))
|
||||
args))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue