I have a data structure which is a list of lists, doesn't really matter.
(setf var1 create_data_Structure)
Now I need to insert a value inside the data structure to test something without var1 being modified.
(defun testsomething(data_str val)
(let ((data_str_aux data_str))
(progn (insert val data_str_aux)
(testData data_str_aux))))
Ok, doesn't really matter what I do with the rest of the function, but now if I write this:
>var1
It appears my my data structure with the value inside, but I didn't want to. I tried also this:
(defun testsomething(data_str val)
(let ((data_str_aux))
(progn (setq data_str_aux data_str)
(insert val data_str_aux)
(testData data_str_aux))))
And it stills modifies my global structure. What would you do?