It's a simple error, instead of the ’ character you must use ' for quoting. It's possible that you copy-pasted the wrong character from somewhere else! Copy the code from here and you'll see that it works:
((lambda (a) (cons (quote a) a)) '(d a b))
=> '(a d a b)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more