comparison lisp/emacs-lisp/assoc.el @ 3768:d3fd7bcefd84

entered into RCS
author Richard M. Stallman <rms@gnu.org>
date Wed, 16 Jun 1993 21:39:03 +0000
parents 2cd6cb337d7c
children 0a02227f8417
comparison
equal deleted inserted replaced
3767:660b7b4e3e40 3768:d3fd7bcefd84
55 55
56 56
57 (defun aput (alist-symbol key &optional value) 57 (defun aput (alist-symbol key &optional value)
58 "Inserts a key-value pair into an alist. 58 "Inserts a key-value pair into an alist.
59 The alist is referenced by ALIST-SYMBOL. The key-value pair is made 59 The alist is referenced by ALIST-SYMBOL. The key-value pair is made
60 >from KEY and optionally, VALUE. Returns the altered alist or nil if 60 from KEY and optionally, VALUE. Returns the altered alist or nil if
61 ALIST is nil. 61 ALIST is nil.
62 62
63 If the key-value pair referenced by KEY can be found in the alist, and 63 If the key-value pair referenced by KEY can be found in the alist, and
64 VALUE is supplied non-nil, then the value of KEY will be set to VALUE. 64 VALUE is supplied non-nil, then the value of KEY will be set to VALUE.
65 If VALUE is not supplied, or is nil, the key-value pair will not be 65 If VALUE is not supplied, or is nil, the key-value pair will not be