I am trying to pattern match calls to letrec using match-lambda. It seems to me that this pattern:
(match-lambda
(`(letrec ((,<var> ,<val>) . (,<vars> ,<vals>)) ,<expr> . ,<exprs>)
`(<match>))
should match calls of the form:
(letrec ((<var> <val>) ...) <expr> ...)
But, of course, this isn't working.
Any advice is appreciated.