Prints the source code for the given symbol, if it can find it.
This requires that the symbol resolve to a Var defined in a
namespace for which the .clj is in the classpath.
Example: (source filter)
(defmacro source
"Prints the source code for the given symbol, if it can find it.
This requires that the symbol resolve to a Var defined in a
namespace for which the .clj is in the classpath.
Example: (source filter)"
{:deprecated "1.2"}
[n]
`(println (or (get-source '~n) (str "Source not found"))))
Comments top
No comments for source. Log in to add a comment.