Re: [racket-users] syntax -> normalized-arity

2016-08-09 Thread Alex Knauth
> On Aug 9, 2016, at 1:51 PM, Ben Greenman wrote: > > 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 > >

[racket-users] syntax -> normalized-arity

2016-08-09 Thread Ben Greenman
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