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