Created
September 18, 2012 22:23
-
-
Save devth/3746338 to your computer and use it in GitHub Desktop.
Quick and dirty access to ENV
This file contains hidden or 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
; first attempt | |
(let [e (into {} (System/getenv))] | |
(into {} (for [[k v] e] [(keyword k) v])))))) | |
; a little nicer | |
(let [e (into {} (System/getenv))] | |
(zipmap (map keyword (keys e)) (vals e))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment