How to concatenate quote and list in Lisp macro?

Posted by DSblizzard on Stack Overflow See other posts from Stack Overflow or by DSblizzard
Published on 2010-04-08T03:28:39Z Indexed on 2010/04/08 3:33 UTC
Read the original article Hit count: 300

Filed under:
|

How to change this code:

(defmacro m(a &rest args)
 `(setf ,a (elt ,args 0)))

(m a (b)) ; I want to write exactly in this form

to set a to '(b)?

© Stack Overflow or respective owner

Related posts about lisp

Related posts about macros