defn

How to defn a function from string in Clojure?

Hi, I'd like to do this (in REPL or anywhere) (defn (symbol "print-string") [k] (println k)) and then be able to do (print-string "lol") Or, if there is any other way to create defn from custom strings in macroses, could you push me into the right direction please? ...

Help me write a Clojure macro which automatically adds metadata to a function definition

Hi. I realize that the first rule of Macro Club is Don't Use Macros, so the following question is intended more as an exercise in learning Clojure than anything else (I realize this isn't necessarily the best use of macros). I want to write a simple macro which acts as a wrapper around a regular (defn) macro and winds up adding some me...