Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2013 14:52
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/4607286 to your computer and use it in GitHub Desktop.
Save anonymous/4607286 to your computer and use it in GitHub Desktop.
(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