Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Learning lisp by doing, but stuck on something simple...
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 5th October 21:23
jack unrue
External User
 
Posts: 1
Default Learning lisp by doing, but stuck on something simple...



The following illustrates what you are trying to do,
but directly using SETF of GETF
[1]> (defvar *config* '(a 1 b 2)) *CONFIG*
[2]> *config* (A 1 B 2)
[3]> (setf (getf *config* 'a) 100) 100
[4]> *config*
(A 100 B 2)

See http://www.lispworks.com/reference/H...ody/f_getf.htm

and http://gigamonkeys.com/book/beyond-l...ons-cells.html

--
Jack Unrue
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666