Created
August 31, 2012 10:58
-
-
Save emanon001/3551440 to your computer and use it in GitHub Desktop.
指定した名前空間に存在する API の名前を、追加されたバージョン毎に確認する
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
(defn api-names-for-each-version-in-ns | |
[ns-sym] | |
(->> (ns-publics ns-sym) | |
vals | |
(map meta) | |
(filter :added) | |
(map (fn [{:keys [name added]}] {added [name]})) | |
(apply merge-with concat))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment