Can I define a function where the body is a quoted body in clojure?

后端 未结 0 1265
情书的邮戳
情书的邮戳 2020-12-28 18:10

So, this is what I want to do

(def body `(prn sth))
(defn f [sth] body)

(f "hello")
; can it prn hello here?

Is this possible?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题