diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-26 07:00:51 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-26 07:00:51 -0500 |
commit | f44415ea46b246bee09b26b21de340b401bacc6d (patch) | |
tree | e6ace01e8c374298a7750edc717c827e03039329 | |
parent | 3e5dcc09de91b9fafda22e274e83acd83aaa1311 (diff) |
Docs: modified docstring on with-alist
-rw-r--r-- | derrida.lisp | 9 |
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: |