Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created September 25, 2020 17:25
Show Gist options
  • Save duanebester/f843347d5d74d9f4242e016855d16d26 to your computer and use it in GitHub Desktop.
Save duanebester/f843347d5d74d9f4242e016855d16d26 to your computer and use it in GitHub Desktop.
GitHub Repos Filter Not Archived
;; 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