From 4adeb53d8082d10ebc092a2c39498a4b94e07ff7 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 30 Dec 2003 18:04:41 +0000 Subject: [PATCH] r8420: document update-alist --- lists.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lists.lisp b/lists.lisp index 229bc91..3115dd5 100644 --- a/lists.lisp +++ b/lists.lisp @@ -157,12 +157,13 @@ (progn (setf (cdr ,elem) ,value) ,alist) - (setf ,alist (acons ,akey ,value ,alist)))))) + (setf ,alist (acons ,akey ,value ,alist)))))) (defun get-alist (key alist &key (test #'eql)) (cdr (assoc key alist :test test))) (defun (setf get-alist) (value key alist &key (test #'eql)) + "This doesn't work to add a field which alist value is only modified locally" (update-alist key value alist :test test) value) -- 2.34.1