I'm passing my macro to a map operation. I'm having some trouble getting my values out. Here is an example:
(def num-vec [1 2 3 4 5])
(defmacro describe-args [first-arg]
`(println '~first-arg " = " ~first-arg))
(doall (map #(describe-args (+ 42 %)) num-vec))
This returns:
(+ 42 p1__437#) = 43
(+ 42 p1__437#) = 44
(+ 42 p1__437#) = 45
(+ 42 p1__437#) = 46
(+ 42 p1__437#) = 47
My question is: How do I get the nested argument in a macro inside a mapped function in Clojure?
(I believe this is a different question to the other map/macro questions already asked as this is about nested argument retrieval).