Last active
January 22, 2017 14:41
-
-
Save deque-blog/471fc851bfc8c6a220e4ea7d5748a65c 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 dependencies [e] | |
(walk/postwalk | |
(fn [e] | |
(cond | |
(cst? e) #{} | |
(sym? e) #{e} | |
(op? e) (apply set/union (rands e)) | |
:else e)) | |
e)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment