Patbind-assocs
b* binder for extracting particular values from an alist.
Usage:
(b* (((assocs (a akey) b (c 'foo)) alst))
form)
is equivalent to
(b* ((a (cdr (assoc akey alst)))
(b (cdr (assoc 'b alst)))
(c (cdr (assoc 'foo alst))))
form)
The arguments to the assocs binder should be either single symbols or
pairs of the form (var key):
- In the pair form, var is the variable that will be bound to the
associated value of key in the bound object, which should be an alist.
Note that key does not get quoted; it may itself be some
expression.
- An argument consisting of the single symbol, var, is equivalent
to the pair (var 'var).
Each of the arguments in the var position of the pair form may be a
recursive binder, and assocs may be nested inside other bindings.