Created
October 1, 2013 21:02
-
-
Save anonymous/6785059 to your computer and use it in GitHub Desktop.
Having trouble....
This file contains 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
;; ns1.clj | |
(ns tests.ns1 | |
(:use tests.ns2)) | |
(defn -main [] | |
(println (conc '((bang "foo") (bang "bar")))) | |
(println (conc2 '((bang "foo") (bang "bar"))))) | |
;; ns2.clj | |
(ns tests.ns2) | |
(defn bang [s] | |
(str s "!")) | |
(defn conc [strings] | |
(str (doall strings))) | |
(defn conc2 [strings] | |
(str (doall (map eval strings)))) | |
;; Output | |
((bang "foo") (bang "bar")) | |
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: bang in this context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment