Suppose I have the following:

(define/contract foo (-> ??? any/c symbol? symbol? any/c any)
   (make-keyword-procedure (lambda (kw kv a b . args) do-something …)))

What sort of contract would I give to the kw parameter so that it basically 
accepts a list of unspecified keywords? What I’m doing is passing that 
information along to keyword-apply and the function derived from other argument 
data. I’d like to be able to skip the contract on the keywords at the moment, 
and simply enforce the other arguments. 

What I get is an error message that would say that foo expects no keywords, but 
was supplied them, as might be the case, even with any/c specified. 

Any suggestions are appreciated.


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 view this discussion on the web visit

Reply via email to