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