Created
September 3, 2010 18:52
-
-
Save fogus/564359 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
| (defn symbol | |
| "Returns a Symbol with the given namespace and name." | |
| {:tag clojure.lang.Symbol | |
| :added "1.0" | |
| :changed "1.3" | |
| :static true} | |
| ([sym] (if (symbol? sym) name (clojure.lang.Symbol/intern sym))) | |
| ([ns sym] (clojure.lang.Symbol/intern (name ns) (name sym)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe (symbol (name 'a) (name 'b)) is a better approach after all.