开发者

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 "*"))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜