Created
March 31, 2016 23:10
-
-
Save amalloy/570557b730f2fdec41fc0a0730722e20 to your computer and use it in GitHub Desktop.
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
(defn key-tree [m] | |
(if (not (map? m)) | |
[[]] | |
(for [[k v] m | |
path (key-tree v)] | |
(cons k path)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment