The -> combinator doesn't support unspecified keywords. ->* won't work either.
Instead, you can try writing a new contract combinator (keyword-procedure/c ?)
Or, don't use define/contract and put the domain checks in the function body.
--
You received this message because you are subscribed to
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 i
2 matches
Mail list logo