Thank you so much, that worked like a charm. I'd like to ask you one more thing if you don't mind
when i define l as a list as below and try to append 3 variables to it in a list the variables don't get appended as a list they get appended one by one as below. I have set the variables b, g and r to be 1 2 and 3. I would like the output to be ((1 2 3) (NIL NIL NIL) (NIL NIL NIL)) . Can you help me figure out how to do this.
Code: Select all
LISP-CV> (defparameter l (list '(nil nil nil) '(nil nil nil)))
L
LISP-CV> (setf l (append (list b g r) l))
(1 2 3 (NIL NIL NIL) (NIL NIL NIL)) <---- see they got appended one by one, not as a a list