aboutsummaryrefslogtreecommitdiff
path: root/derrida.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'derrida.lisp')
-rw-r--r--derrida.lisp9
1 files changed, 6 insertions, 3 deletions
diff --git a/derrida.lisp b/derrida.lisp
index f8fe8bd..c9bd495 100644
--- a/derrida.lisp
+++ b/derrida.lisp
@@ -5,10 +5,13 @@
(defmacro with-alist ((&optional (accessor 'cdr)) (&rest bindings) alist &body body)
- "Bind variables to accessors into ALISTS. Each member of BINDINGS is
- either a symbol variable or a list that looks like (var key-term . kwargs).
+ "Bind variables to accessors into ALISTS. ACCESSOR, which should be
+ an accessor function, is called like (ACCESSOR (ASSOC ..)).
- The kwargs are passed as keyword argments to (ASSOC KEY-TERM ALIST ...).
+ Each member of BINDINGS is either a symbol VAR or a list that
+ looks like (VAR KEY-TERM . KWARGS).
+
+ KWARGS are passed as keyword argments to (ASSOC KEY-TERM ALIST ...).
EXAMPLE: