Created
July 10, 2012 00:43
-
-
Save jdewind/3080204 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
(def config-file (ref nil)) | |
(def data (ref [])) | |
(defn -main [& args] | |
(let [{:keys [config] inputs}] (cli args ["--config" "Config file"]) | |
(dosync (ref-set config-file config)) | |
(println @config-file) | |
(dosync (ref-set data [1 2 3])) | |
(println @data))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment