This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

variable list - getting the element

2 posts · 2062 views

I have a list that only contains 1 element like this
(setq x ("Thomas")
(somefunction x))

(defun somefunction (x)
(print x))
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