Does anyone have code for statically approximating the arity (and keywords)
of a function?

Examples of my dream function static-procedure-arity:

> (static-procedure-arity #'(lambda (x) x))
1
> (static-procedure-arity #'(lambda (x #:y y . z) x))
(arity-at-least 1)
> (static-procedure-arity #'(define (f x y) x))
2

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to