How do you construct a symbol in clojure?
I want to construct a macro that, given a symbol 'foo
, creates a method called foo*
. How can I 开发者_运维问答concatenate 'foo
and '*
?
(let [s (symbol 'test)]
(symbol (str s "*")))
(symbol (str 'foo "*"))
精彩评论