variable list - getting the element
Posted: Sat Sep 22, 2012 12:17 am
I have a list that only contains 1 element like this
That's basically the problem I have in my code. I can't paste my code exactly cause a) it's too long and the problem is for a specific bit, prob just mak it more confusing. b) I am running VMWare inside windows so i can't copy and paste between them....anyway,....
I only want to print out the element and not the whole ()'s
output: Thomas
not: ("Thomas") or "Thomas"
Thanks
Code: Select all
(setq x ("Thomas")
(somefunction x))
(defun somefunction (x)
(print x))
I only want to print out the element and not the whole ()'s
output: Thomas
not: ("Thomas") or "Thomas"
Thanks