I am reading data from a yaml file that results in data like this:
{:test1 (1 2 3)}
I can lookup the key :test1 and get a clojure.lang.LazySeq with the elements 1 2 3. But when I want to use this data in a macro it gets expanded to a function call and not to a quoted list.
For example:
(defmacro mmerge
[map1 map2]
`(assoc ~(merge map1 map2) :merged true))
(mmerge {:test1 (1 2 3)} {:test2 (4 5 6)})
This gets expanded to:
(clojure.core/assoc {:test2 (4 5 6), :test1 (1 2 3)} :merged true)
Is there a possibility to somehow get this to work?
Thanks in advance