Last active
December 27, 2015 04:39
-
-
Save pbalduino/7268251 to your computer and use it in GitHub Desktop.
Argument verification with Clojure
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 -main[& args] | |
(if-let [_ args] | |
(println "with args") | |
(println "without args"))) | |
; $ lein run | |
; without args | |
; $ lein run meh | |
; with args |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment