Created
September 25, 2020 17:25
-
-
Save duanebester/f843347d5d74d9f4242e016855d16d26 to your computer and use it in GitHub Desktop.
GitHub Repos Filter Not Archived
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
;; use filter with an anonymous function | |
(def active-repos (filter (fn [repo] (false? (get repo :archived))) @repos)) | |
;; check how many repos are not archived | |
(println (count active-repos)) | |
; => 202 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment