Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 2
    what output you want the macro to return? Commented Apr 6, 2022 at 4:12
  • 3
    WHY do you want it to be a macro?! Commented Apr 6, 2022 at 4:19
  • 1
    You need to macro-expand the macro - it will then show you what the macro actually does. Commented Apr 6, 2022 at 7:08
  • 1
    A macro is something that transforms source code in an extended Lisp into source code in a more restricted Lisp: what source code do you want to start with, and what source code do you want to end up with? That will tell you both if you need a macro at all and how to write it. Without knowing that it's not really possible to answer this question. Commented Apr 6, 2022 at 7:39
  • 1
    If you quote the arguments, they won't be evaluated: '(incf var-a) or (quote (incf var-a)) (but what do you want to do etc). Commented Apr 6, 2022 at 9:52