Search found 1 match
- Wed Jul 14, 2010 11:05 am
- Forum: Common Lisp
- Topic: How to modify elements of a list
- Replies: 1
- Views: 2353
How to modify elements of a list
Hi all, I'm approching Common Lisp but I'm having problems with functions that manipulate lists. In my program I have something like this: (defun ac(var val domain) (let* ( (x nil) (dom nil) ) (setq dom (copy-list domain)) (dolist (x dom) (if(equal (third x) var) (progn (setf (first x) val) (setf (s...