Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2011 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1217168 to your computer and use it in GitHub Desktop.
Save anonymous/1217168 to your computer and use it in GitHub Desktop.
;; msoutier's solution to Drop Every Nth Item
;; https://4clojure.com/problem/41
(fn [coll n]
(keep-indexed #(if (not= 0 (mod (inc %1) n)) %2 nil) coll))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment