a very simple function
Posted: Sun Mar 13, 2011 3:18 pm
Hi,
I'm really new at the lisp and I need your help.
I have got a list
When I call some function which looks like
where S is the list and the N is a number.
This number(N) I want to add at the end of the list. The result should be
(5 6 4 2 N).
For example N=7 then the list is (5 6 4 2 7).
How can I do it ? Please help me.
Thanks in advance. Mike
I'm really new at the lisp and I need your help.
I have got a list
Code: Select all
(setq S '(5 6 4 2))
Code: Select all
(defun add (S N) (...) )
This number(N) I want to add at the end of the list. The result should be
(5 6 4 2 N).
For example N=7 then the list is (5 6 4 2 7).
How can I do it ? Please help me.
Thanks in advance. Mike