Created
July 25, 2011 18:03
-
-
Save fronx/1104731 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; user=> (source source) | |
| (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)" | |
| [n] | |
| `(println (or (source-fn '~n) (str "Source not found")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment