Last active
August 29, 2015 14:09
-
-
Save patrickgombert/4f4e3b51ea6ee81e76b6 to your computer and use it in GitHub Desktop.
Find difference in public vars
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
(let [next-public (ns-publics 'clojure.next) | |
core-public (ns-publics 'clojure.core) | |
[compl not-compl] (let [s (set (keys next-public))] | |
(loop [ks (keys core-public) | |
compl '() | |
not-compl '()] | |
(if (empty? ks) | |
[compl not-compl] | |
(if (contains? s (first ks)) | |
(recur (rest ks) (conj compl (first ks)) not-compl) | |
(recur (rest ks) compl (conj not-compl (first ks)))))))] | |
(doseq [x compl] (println "* [X] - " x)) | |
(doseq [x not-compl] (println "* [ ] - " x))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment