Skip to content

Instantly share code, notes, and snippets.

/test.clj
Created Jan 23, 2013

Embed
What would you like to do?
(defn foo [thing]
(if (nil? thing)
(do (println "It's nil...")
false)
(do (println "It's not nil, it's" thing)
true)))
(println "Calling foo with nil")
(foo nil)
(println "Calling foo with \"Hello, world\"")
(foo "Hello, world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.