Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2012 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4048426 to your computer and use it in GitHub Desktop.
Save anonymous/4048426 to your computer and use it in GitHub Desktop.
(ns core)
(defn foo
[x]
(println "Hello, World!"))
(defn -main []
(println "foo")
(map #(foo %) '(1 2 3))
)
(-main)
output:
nil
#'core/foo
#'core/-main
foo
(Hello, World!
Hello, World!
nil Hello, World!
nil nil)
(ns core)
(defn foo
[x]
(println "Hello, World!"))
(defn -main []
(println "foo")
(map #(foo %) '(1 2 3))
"a"
)
(-main)
output:
nil
#'core/foo
#'core/-main
foo
"a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment